WP7 (1): System.Windows.debug.resources not found?

When I run the WP7.1 application, I get this error.

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

Any idea what is going on?

+8
source share
2 answers

In my experience, what could happen if you create or use some Framework element (or any dependency object, for that matter) in a thread other than the UI.

Just make sure that all tasks related to the user interface are performed in the user interface thread, and if not, use Dispatcher.BeginInvoke to send them to the main thread.

+2
source share

There is an easy workaround: simply create your own CheckBox control by inheriting the Windows Phone Silverlight CheckBox and overriding the ToString () method as follows:

 public class MyCheckBox:CheckBox { public override string ToString() { return string.Empty; } } 

see here: Framework Exceptions on Windows Phone

-2
source share

All Articles