Monday, April 5, 2010

No device or emulator visible in 2010 Express for Windows Phone CTP

I was using 2010 Express for Windows Phone. I was trying to debug the application but I get an error "Exception from HRESULT: 0x89721800". I was pulling my hairs out! Thanks to MSDN, here is the solution...

Run "VS 2010 Express for Windows Phone" as administrator. Check out Windows Phone Developer Tools release notes - section "Installation" #6:

"6. When you install the tools as an administrator and then you try to run the tools from a normal user account, deployment to the emulator fails. Workaround: keep running the tools as an administrator or change the privileges of the c:\programdata\microsoft\phone tools\corecon\10.0\addons\ImageConfig.xsl file so that all accounts can read it (i.e. everyone)."

http://download.microsoft.com/download/D/9/2/D926FB38-BB43-4D87-AE5A-1A3391279FAC/ReleaseNotes.htm#tag_installation