错误发布到Azure在VS 2010 - 对象引用不设置到对象的实例 [英] Error Publishing to Azure in VS 2010 - Object reference not set to an instance of an object

查看:164
本文介绍了错误发布到Azure在VS 2010 - 对象引用不设置到对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到试图发布Visual Studio 2010中一个ASP.net Web应用程序到Windows Azure,我能够运行在IIS这个应用程序当一个对象引用不设置到对象错误的实例,并在Azure仿真器,没有错误。

我已经通过了检查和我所有的引用,检查了Azure的配置设置,并在web.config并不能搞清楚是怎么回事。我还有一个应用程序,它不是来自这一块,它有没有问题发布到Azure的不同。

这是从Windows Azure活动日志在Visual Studio中来。它好像它的到来身边的时候,权当它即将验证存储帐户。也许它涉及到的?

 上午11时08分46秒 - 警告:有包验证警告。上午11时08分46秒 -  preparing部署Repnet  -  2012年11月9日上午11时06分35秒与订阅ID********  -  ****  -  ****  -  * ***  -  ************使用服务管理URL的https://management.core.windows.net /'...上午11时08分46秒 - 连接...上午11时08分48秒 - 对象引用不设置到对象的实例。上午11时08分48秒 - 部署失败,一个致命错误


解决方案

检查<&是connectionStrings GT;
 元素在web.config文件中。如果它有一个''<清/方式> 元素中取出,出版后记应该工作

请参阅链接

I'm getting an Object reference not set to an instance of an object error when trying to publish a ASP.net web application to Windows Azure in Visual Studio 2010. I am able to run this application in IIS, and the Azure emulator, without error.

I've gone through and checked all my references, checked the Azure configuration settings, and the web.config and can't figure out what's going on. I have another application which isn't that different from this one, which has not problem publishing to Azure.

This is coming from Windows Azure Activity Log in Visual Studio. It seems as though it's coming right around the time when it is about to verify the storage account. Maybe it's related to that?

11:08:46 AM - Warning: There are package validation warnings.

11:08:46 AM - Preparing deployment for Repnet - 11/9/2012 11:06:35 AM with Subscription ID '********-****-****-****-************' using Service Management URL 'https://management.core.windows.net/'...

11:08:46 AM - Connecting...

11:08:48 AM - Object reference not set to an instance of an object.

11:08:48 AM - Deployment failed with a fatal error

解决方案

Check your <connectionStrings> element in the web.config file. If it has a ''<clear/> element remove it, afterwords publishing should work.

See Link

这篇关于错误发布到Azure在VS 2010 - 对象引用不设置到对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆