Behind the Brain

NullReferenceException when deploying WP7 app

When you get the error

 MSBUILD : error : Xap packaging failed. Object reference not set to an instance of an object.
when you are trying to deploy a WP7 app there is probably a file missing that you are referencing in in your app. To find out which file it is check the "WMAppManifest.xml" file in your App's Property folder. Every file that is reference there has to exist.

The nasty thing about this is that if you included a file as a link it won't be found by the deployment mechanism. So be sure that these files really exist and aren't just links inside Visual Studio

Aug 30th 2011, 17:26 by Sylence.

Back to top