Windows Explored

Everyday Windows Desktop Support, Advanced Troubleshooting & Other OS Tidbits

    Advertisements
  • August 2014
    M T W T F S S
    « Apr   Dec »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • Translate

Archive for August, 2014

The Case of My Broken App in Windows 8

Posted by William Diaz on August 1, 2014


This is a case where the Application Event logs came in handy when my application started to crash upon loading on our Windows 8.1 images. Since my app was compiled as .NET, the stack in the error details pointed me to problem object:

image

When TextBlock3 loaded it was doing Environment.GetEnvironmentVariable(“SomeVariable”). The variable in question did not exist on our Windows 8.1 images. Although this did not seem to pose an issue for my Windows 7 dev box (it just would not display the TextBlock), Windows 8 will throw an exception if the variable does not exist and the app will crash. The likely cause my dev PC did not encounter this exception when running was because .NET framework 4.5 was not installed whereas .NET 4.5 is the default framework in Windows 8.

Advertisements

Posted in Troubleshooting | Tagged: | Leave a Comment »