Tuesday, May 29, 2012

Error : DEP0600 : The following unexpected error occurred during deployment: Illegal characters in path.

During the deployment of your Windows 8 Metro application, you may encounter the following error: Error : DEP0600 : The following unexpected error occurred during deployment: Illegal characters in path.


This may happen if you moved your project to a new location after its first deployment and you are trying to redeploy the application. There are 2 ways to resolve this error, both of which I mention below.

FIRST SOLUTION

Uninstall the version of the application installed from another location. To do this, on the home/start screen right click on your app's icon and then click uninstall in the menu bar at the bottom. Once uninstalled, the error in Visual Studio should disappear.

SECOND SOLUTION

Create a new GUID and copy it. Now open the Package.appxmanifest file and replace the package name with the new GUID. This should fix the deployment issue.

If you do not know how to generate a new GUID, you can alternatively create a new app and copy its package name into your app to resolve this issue.

Happy Coding,
Paras Wadehra