publish error object reference not set to an instance of an object in visual studio

publish error

I faced the error “object reference not set to an instance of an object”, when I tried to publish windows azure cloud service to Cloud Service using Visual Studio 2013. I did research but didn’t get any solution. Some guys said remove the “.suo file”, remove tag “<clear/>” from web config file, but no luck.

After some time I saw there is a profile folder in my Cloud Service contain a file with extension “.azurePubxml”, I removed that file and tried to publish again and its works like charm.

Hope it will work for you guys also…Happy coding.

Posted by | View Post | View Group