![](/img/trans.png)
[英]Upon publishing to windows azure, Object reference not set to an instance of an object
[英]Error Publishing to Azure in VS 2010 - Object reference not set to an instance of an object
嘗試在Visual Studio 2010中將ASP.net Web應用程序發布到Windows Azure時,我得到一個Object引用未設置為對象錯誤的實例。我能夠在IIS和Azure模擬器中運行此應用程序,錯誤。
我已經檢查了所有引用,檢查了Azure配置設置和web.config,但無法弄清楚發生了什么。 我有另一個與這個沒有什么不同的應用程序,它沒有問題發布到Azure。
這來自Visual Studio中的Windows Azure活動日志。 看起來好像是在即將驗證存儲帳戶的時候。 也許它與此有關?
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
檢查web.config文件中的<connectionStrings>
元素。 如果它有'' <clear/>
元素刪除它,后發布應該工作。
見鏈接
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.