Error: a specified communication resource (port) is already in use by another application
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.
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.
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.
I had this occurring when trying to debug the app on my device. I fixed it by uninstalling the app and redeploying it.
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.
Original article http://blog.masterdevs.com/a-specified-communication-resource-port-is-already-in-use-by-another-application/. Thanks Josh.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With