我刚把我的应用程序移到另一台计算机上。第一台计算机运行VS2012,第二台运行VS2012。但是,当我尝试部署时,在第二台计算机上,我收到以下消息:
6:51:20 PM - Warning: There are package validation warnings.
6:51:20 PM - Preparing deployment for X - 12/12/2012 6:47:41 PM with Subscription ID 'X' using Service Management URL 'https://management.core.windows.net/'...
6:51:20 PM - Connecting...
6:51:22 PM - Verifying storage account 'dX'...
6:51:24 PM - Uploading Package...
6:58:57 PM - Updating...
7:02:46 PM - Role instances recycled for a certain amount of times during an update or upgrade operation. This indicates that the new version of your service or the configuration settings you provided when configuring the service prevent role instances from running. The most likely reason for this is that your code throws an unhandled exception. Please consider fixing your service or changing your configuration settings so that role instances do not throw unhandled exceptions. Then start another update or upgrade operation. Until you start another update or upgrade operation, Windows Azure will continue trying to update your service to the new version or configuration you provided
7:02:47 PM - Deployment failed with a fatal error
当我用intellitrace检查时,它告诉我加载服务运行时有问题。
Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=1.7.0.0
目前我的1.7 DLL已经将CopyLocal加载到False。有没有人知道为什么它不会加载。我假设我不需要设置为CopyLocal - True。
FYI Web平台安装程序显示:
Windows Azure Libraries for .NET 1.7 Installed
Windows Azure Libraries for .NET 1.8 Installed
答案 0 :(得分:0)
根据以下错误消息,您似乎正在使用不同版本的SDK更新云应用程序:
Role instances recycled for a certain amount of times during an update or upgrade operation. This indicates that the new version of your service or the configuration settings you provided when configuring the service prevent role instances from running.
The most likely reason for this is that your code throws an unhandled exception. Please consider fixing your service or changing your configuration settings so that role instances do not throw unhandled exceptions.
Then start another update or upgrade operation. Until you start another update or upgrade operation, Windows Azure will continue trying to update your service to the new version or configuration you provided
因此,您之前的应用程序可能基于SDK 1.8,而更新的应用程序基于SDK 1.7版,这就是您在intellitrace中看到错误的原因。或者它还显示您的应用程序配置发生了很大变化,需要进行新部署而不是更新。
您可以执行以下操作: