Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: EFTools compile errors

$
0
0
Thanks zgabi for the additional information. I just wanted to let you know that I was able to repro the second issue and that the exception on DpiHelper.LogicalToDeviceUnits(ref imageList) was a good hint.

This method is used (only in the Visual Studio 2013 version of the designer) to scale image elements according to the UI scaling setting from Windows (usually established in Control Panel\Appearance and Personalization\Display). When the scaling mode isn't passed as a parameter VS will not only calculate the most crisp looking scaling mode and the scale but will also check the registry for user overrides.

Apparently, when executing the code of the WizardStartPage from a test, the whole VS environment isn't set and therefore the service used to read the value from the registry isn't available, hence the exception. This also seems to happen only if the Windows settings for the user account have established a scaling different from 100%.

I still haven't found a good fix for the test, but could you verify what scaling percentage is set by Windows in your user account and whether setting it to 100% removes the exceptions? You will have to log out from your Windows account to make the change really effective.

Thanks ErikEJ for the additional information.

Thanks,
Diego

Viewing all articles
Browse latest Browse all 1793

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>