Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure tools - Object reference not set to an instance of an object

I am trying to create a new project that uses the "Windows Phone Empty Cloud Application" template(Windows Azure Tools) in Visual Studio 2010. When creating a new project it opens a small window with instruction/readme where it says:

In Solution Explorer, right-click the Windows Azure project, point to Debug and click Start new instance. Wait for the Web role to start and click the Continue to this website (not recommended) link to be able to browse the site despite of the certificate warning.

When I do this, I get a "Object reference not set to an instance of an object" And i have not even started coding yet.... Is the template just broken or??

Any ideas?

like image 361
jacob Avatar asked Oct 17 '12 22:10

jacob


People also ask

How do I fix object reference is not set to an instance of an object?

To fix "Object reference not set to an instance of an object," you should try running Microsoft Visual Studio as an administrator. You can also try resetting the user data associated with your account or updating Microsoft Visual Studio to the latest version.


2 Answers

With Visual Studio 2013 I started running into the "object reference not set to an instance of an object" errors with Azure projects. In my cases unloading and reloading the cloud and/or role -project has helped (right click on the project, select unload from the context menu)

like image 96
Juha Palomäki Avatar answered Sep 25 '22 00:09

Juha Palomäki


After trying the solution above it did not work for me.

We manage to solve the issue starting VS in Administrator mode.

That solve it

like image 22
Javier Hertfelder Avatar answered Sep 27 '22 00:09

Javier Hertfelder