Reputation: 567
I am trying to run a background task using ScheduledAgent in Windows Phone 8. Everything gets compiled properly, but when I run the app on Emulator/Device, I get a crash saying
"'System.IO.FileNotFoundException' occurred in System.Windows.ni.dll"
The same code runs properly in Windows Phone 7.
For Windows Phone 8 I am using Visual Studio 2012
For Windows Phone 7 I am using Visual Studio 2010
Upvotes: 0
Views: 981
Reputation: 567
This was because I missed adding the background agent dll in the main application. Once I add that all seems to be fine :-)
Upvotes: 2