Azure工具 - 未将对象引用设置为对象的实例

时间:2021-03-21 16:54:45

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:

我正在尝试创建一个在Visual Studio 2010中使用“Windows Phone Empty Cloud Application”模板(Windows Azure Tools)的新项目。在创建新项目时,它会打开一个带有指令/自述文件的小窗口,其中显示:

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.

在解决方案资源管理器中,右键单击Windows Azure项目,指向“调试”,然后单击“启动新实例”。等待Web角色启动并单击“继续浏览此网站(不推荐)”链接,以便能够浏览站点,尽管有证书警告。

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?

有任何想法吗?

3 个解决方案

#1


25  

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)

使用Visual Studio 2013,我开始在Azure项目中遇到“未设置为对象实例的对象引用”错误。在我的情况下,卸载和重新加载云和/或角色-project有帮助(右键单击项目,从上下文菜单中选择卸载)

#2


2  

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

在尝试上面的解决方案后,它对我不起作用。

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

我们设法解决在管理员模式下启动VS的问题。

That solve it

解决它

#3


0  

Usually it means the .cscfg configuration file is corrupt. In my situation, somehow it contained an invisible character.

通常,这意味着.cscfg配置文件已损坏。在我的情况下,它不知何故包含一个看不见的角色。

Opening each .cscfg file and copy-pasting file content to Notepad and back solved the issue.

打开每个.cscfg文件并将文件内容复制粘贴到记事本并返回解决了问题。

#1


25  

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)

使用Visual Studio 2013,我开始在Azure项目中遇到“未设置为对象实例的对象引用”错误。在我的情况下,卸载和重新加载云和/或角色-project有帮助(右键单击项目,从上下文菜单中选择卸载)

#2


2  

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

在尝试上面的解决方案后,它对我不起作用。

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

我们设法解决在管理员模式下启动VS的问题。

That solve it

解决它

#3


0  

Usually it means the .cscfg configuration file is corrupt. In my situation, somehow it contained an invisible character.

通常,这意味着.cscfg配置文件已损坏。在我的情况下,它不知何故包含一个看不见的角色。

Opening each .cscfg file and copy-pasting file content to Notepad and back solved the issue.

打开每个.cscfg文件并将文件内容复制粘贴到记事本并返回解决了问题。