Xap packaging failed. Object reference not set to an instance of an object

Xap packaging failed. Object reference not set to an instance of an object

I'm getting this error message on my PC when I try to build my Windows Phone app:

Xap packaging failed. Object reference not set to an instance of an object

I'm using Dropbox. On my laptop, It works perfectly fine and I can debug etc...On my PC however, I can't.

I tried many things such as:

  • Delete obj/Debug Folder
  • Check for files which are missing on the Solution Explorer

So far, nothing has helped.

Any idea how I can fix this?


You should check, in every folder of your project, for missing files or wrong references.

You can get this problem just with a single missing image, if its Build Action property is set to Content or similar...

Check your files and then Rebuild your project!

MSBUILD : error : Xap packaging failed. Object reference not set to , Object reference not set to an instance of an object. This error means one of the core files referenced in the WMAppManifest. This can be either due to the file being renamed or deleted, or just of the wrong build type. Open up your WMAppManifest. Xap packaging failed. Object reference not set to an instance of an object. Short story. A file had been removed from disk but not from the solution. Always set your sample data files to Build action: None. Long story The missing file. After a few rounds of clean, rebuild, machine reboot etc.,


This can happen if a file is removed from the disk itself, but not from the Solution through Visual Studio. Delete the file through Visual Studio (it should be marked with a little yellow hazard icon) and Rebuild.

Credit to Andreas Hammar via http://blog.jayway.com/2011/06/03/wp7-build-error-xap-packaging-failed/ - his solution worked for me.

Error, Check every folder in your solution explorer for missing files. In my case I found I was somehow missing the ServiceReferences.ClientConfig� Object reference not set to an instance of an object. In Italian. Xap packaging failed. Riferimento a un oggetto non impostato su un’istanza di oggetto. Cause: Into the WMAppManifest.xml file there is the following line: [sourcecode lang=”XML”] <BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI> [/sourcecode] but in the project not exists the Background.png file.


I am adding this reply because although the problem with app icons is covered in brief in some of the answers above, I wanted to give exact steps since it just happened to me. I got this error and then found this web page:

Xap Packaging Error

It turned out that my App icon file name was wrong due to a rename. I double-clicked on WMAppManifest.xml, found in the Properties folder, to open the editor for that file. I simply used the button to update the App Icon, re-found the file and selected it, and the error went away after rebuilding the project.

WP7 build error 'Xap packaging failed', If you face the error "Xap packaging failed. Object reference not set to an instance of an object." while trying to build your Windows Phone� When you build your WP7 app, you may get the following cryptic error after a successful compilation: MSBUILD : error : Xap packaging failed. Object reference not set to an instance of an object. This error means one of the core files referenced in the WMAppManifest.xml is missing.


The problem lies in your startup object in your Application. I have met this error to many times.

It usually happens when I change the name of my class/namespace Application class. Or it might even be conflicting with your dropbox locations.

To Fix this.

  1. Right click your main project or Alt+Enter
  2. Go to the silverlight tab and set your startup object

Google AdMob Ads Windows Phone 7 sample, Today my Windows Phone 7 solution started giving me one single build error: Xap packaging failed. Object reference not set to an instance of� Xap packaging failed. Object reference not set to an instance of an object Object reference not set to an instance of an object . I'm using Dropbox. On my laptop


Error: Xap packaging failed. Object reference not set to an instance , Google AdMob Ads Windows Phone 7 sample my solution to the error: "Xap packaging failed. Object reference not set to an instance of an object." Xap packaging failed. Object reference not set to an instance of an object I'm using Dropbox. On my laptop, It works perfectly fine and I can debug etcOn my PC however, I can't. I tried many things such as: Delete obj/Debug Folder; Check for files which are missing on the Solution Explorer; So far, nothing has helped. Any idea how I can fix


Windows Phone 7 – one fix for “Xap packaging failed. Object , Error: Xap packaging failed. Object reference not set to an instance of an object. I came across this issue last week and couldn't find any� Object reference not set to an instance of an object. (AppIDPackage) Error in sql server management studio .For problems comment on the video. We will try to


Xap packaging failed , Object reference not set to an instance of an , Windows Phone Development - XAP packaging failed. Object reference not set to an instance of an object. Mostly this error occurs when there� Xap packaging failed. Object reference not set to an instance of an object. In Italian. Xap packaging failed. Riferimento a un oggetto non impostato su un’istanza di oggetto. Cause: Into the WMAppManifest.xml file there is the following line: [sourcecode lang=”XML”]


Windows Phone 7 – one fix for “Xap packaging failed. Object reference not set to an instance of an object.” juarola Uncategorized June 28,� This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more