Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 8 : "The drive cannot locate a specific area or track on the disk."

I get following message when I try to add "Periodic Task" to "ScheduledActionService" in Windows Phone 8 Application.

"The drive cannot locate a specific area or track on the disk."

I am really not sure if this is related to Visual Studio 2012 that I am using or related to Periodic Tasks on Windows Phone 8.

The same piece of code works fine in Windows Phone 7.

like image 774
DeveloperLove Avatar asked Nov 26 '12 12:11

DeveloperLove


2 Answers

I found the solution here: http://social.msdn.microsoft.com/forums/en-us/wpdevelop/thread/a973955e-0981-4be8-8ac0-8dfcb9dc2917/

You need to manually update your WPAppManifest.xml file and configure the background task there.

Appears to be normal behavior, not related to emulator or debugging.

like image 98
Koen Avatar answered Nov 11 '22 09:11

Koen


There is a excellent explanation as to what is required by microsoft for background task in the msdn tutorial videos.

It references your problem at around 24:30 with editing the WPAppManifest.xml file.
He explains step by step what needs to be done and why.

http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/Part-34-Creating-a-Background-Agent-for-Scheduled-Tasks

Also I got a null reference exception after fixing the WPAppManifest.xml when called from the the main project, turns out the main project also has to reference the scheduler project (even if not using anything in it).

like image 3
Choco Smith Avatar answered Nov 11 '22 10:11

Choco Smith