Windows phone 8 emulator debugging doesn't work

Valentin Vasilyev picture Valentin Vasilyev · Nov 5, 2012 · Viewed 9.9k times · Source

Error: a specified communication resource (port) is already in use by another application

  • This happens only on the Hyper-V emulator, old, 7.1 emulator works fine.
  • Deployment from Blend 2012 works fine.
  • Deleting the virtual machines in Hyper-V manager doesn't help
  • Deleting the %user%\AppData\Local\Microsoft\Phone Tools\CoreCon doesn't help

My output is:

1>------ Deploy started: Project: Proj1, Configuration: Debug Any CPU ------
1>Deploying C:\Users\Валентин\Projects\Proj1\Bin\Debug\Proj1.xap...
1>Connecting to Emulator WVGA 512MB...
1>The application is already installed on the device. Checking if an incremental deployment is possible...
1>Doing incremental deployment...
1>Updating information related to modified files...
1>Deployment of C:\Users\Валентин\Projects\Proj1\Bin\Debug\Proj1.xap succeeded.
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

Last status bar message:

Launching TaskHost.exe failed 

I'm using VS2012 express for WP, WP 7.1 project on WP8 emulator, Windows 8 64 bit.

The curious part is that it worked fine earlier, but for some reason stopped working today.

Please share your ideas.

Answer

msbg picture msbg · Nov 23, 2012

I had this occurring when trying to debug the app on my device. I fixed it by uninstalling the app and redeploying it.