Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows phone 8 emulator debugging doesn't work

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.

like image 934
Valentin V Avatar asked Nov 05 '12 07:11

Valentin V


People also ask

How to debug UWP application?

Debug an installed UWP app on a local machineIn Visual Studio, select Debug > Other Debug Targets > Debug Installed App Package. In the Debug Installed App Package dialog, under Connection Type, select Local Machine. Under Installed App Packages, select the app you want to debug, or type its name in the search box.

What are the good features of the Windows Phone emulator?

It provides a virtualized environment in which you can debug and test Windows Phone apps without a physical device. It also provides an isolated environment for application prototypes.


2 Answers

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

like image 157
msbg Avatar answered Nov 03 '22 01:11

msbg


There is a workaround:

Right click on your project and select Deploy. This will copy all necessary code to the emulator. After that you are free to hit F5 like normal.

enter image description here


Original article http://blog.masterdevs.com/a-specified-communication-resource-port-is-already-in-use-by-another-application/. Thanks Josh.

like image 34
CAMOBAP Avatar answered Nov 02 '22 23:11

CAMOBAP