Sunday, September 23, 2012

Error: DEP0600: The following unexpected error occurred during deployment: Could not find a part of the path

If you receive an error like "Error: DEP0600: The following unexpected error occurred during deployment: Could not find a part of the path 'C:\Code\UnitConverter\bin\Debug\AppxManifest.xml'" during development/deployment of your Windows 8 App, you are not alone.

This simply means you copied the code for your app from one folder to another and are trying to run/deploy it from the new location now! Don't worry, the solution is very simple - just do a "clean solution" and then "rebuild solution" and you are on your way to run the app successfully.

Told you, it was simple :)

For your information, the full stack trace for the error would probably look like following:

Error : DEP0600 : The following unexpected error occurred during deployment: Could not find a part of the path 'C:\Code\UnitConverter\bin\Debug\AppxManifest.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.DataFilesShim.LoadManifest (String path, String& checksum)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.AppxManifest..ctor (String manifestFile, LogHelper logger)
   at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.RegisterAppxLayout.Start (Boolean forceNewLayout, Boolean forceRegistration, NetworkLoopbackState desiredNetworkLoopbackState, Boolean refreshLayoutOnly, String& packageMoniker, String& firstUserAppID, Exception& deployException)

And here is a link to my app, UnitConverter for Windows 8, for all of you to download and play with - http://apps.microsoft.com/webpdp/app/unitconverter/15f6278c-3c3b-492e-a82f-691ad1b45f5b

As always, feel free to ask me any questions about your Windows Phone and Windows 8 development dilemmas.

Cheers,
Paras Wadehra
Twitter: @ParasWadehra