sobota, 10 marca 2012

Unexpected error while debugging Windows Phone 7.1

Today I`ve  some strange which occurred before my debugger attached to the Windows Mobile emulator.
Exception message text  was:

"File or assembly name 'System.Windows.debug.resources, Version=, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found."

As You can see this in not helpful and hard to resolve. But after some investigation I remembered that I changed some exception settings in my Visual Studio.

All thing You need to do, when you get such error is  to turn off any other exception types than 'CLR Exceptions". To change this in Visual Studio go to the Debug->Exceptions.

Thank You.