Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

When I run my WP7.1 app, I get this error.

File or assembly name '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 happening?

like image 625
MojoDK Avatar asked Nov 03 '11 20:11

MojoDK


1 Answers

In my experience that could happen if you create or use some Framework Element (or any Dependency Object for that matter) in a non-UI Thread.

Simply check that all UI-related tasks are performed on the UI thread, and if not, use Dispatcher.BeginInvoke to post them to the main thread.

like image 174
gcannata Avatar answered Sep 20 '22 07:09

gcannata