Illegal characters in path when deploying a Metro Style App

Illegal characters in path when deploying a Metro Style App

Rate This
  • Comments 1

If you are getting an error similar to the one below when deploying your Metro Style App in Visual Studio 11 Beta it’s not you.

Error    1    Error : DEP0600 : The following unexpected error occurred during deployment: 
Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.Combine(String path1, String path2)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.AppxLayoutManager.CheckPackageLayoutState(DeployPackageName deployPackageName, String location)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.LocalDeployJob.GetLayoutState(DeployPackageName deployName, Boolean hasFrameworkDependencies)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.RegisterAppxLayout.Start(Boolean forceNewLayout, Boolean forceRegistration, NetworkLoopbackState desiredNetworkLoopbackState, Boolean refreshLayoutOnly, String& packageMoniker, String& firstUserAppID, Exception& deployException)    MetroInclinometerSteeringWheel

 

This is a known issue when moving source files around to different folders without uninstalling the Metro Style App.  The good news is the fix is simple!

Uninstall the application via it’s Start Screen Live Tile and then re-deploy it in Visual Studio 11.

I have this happen to me frequently due to having different machines I present on and moving source code around between them.  I figured I would share the solution in case you come across the same issue.

Leave a Comment
  • Please add 4 and 5 and type the answer here:
  • Post
  • Thanks so much, that's what I need. By the way, I need to get system color. Do you know how to get it?

Page 1 of 1 (1 items)