【问题标题】:Azure Worker role not starting after upgrade to Visual studio 2015 and Azure Sdk 2.8.2Azure Worker 角色在升级到 Visual Studio 2015 和 Azure Sdk 2.8.2 后未启动
【发布时间】:2016-04-07 02:17:31
【问题描述】:

我的 Web 应用程序过去在 Visual Studio 2012 和 Azure Sdk 2.5 上运行良好,现在想升级到 Visual Studio 2015 和 Azure Sdk 2.8.2。

它构建没有任何问题,并且在模拟器中运行没有任何问题。

当我将角色部署到 Windows Azure 时,我会收到此消息 -

“正在回收(等待角色启动...站点已部署。[2016-02-11...])”

我在远程登录的 windows 事件查看器中发现了以下错误消息...

错误消息 1:

 System 

 Provider 

 [ Name]  Application Error 

  EventID 1000 

 [ Qualifiers]  0 

  Level 2 

  Task 100 

 Keywords 0x80000000000000 

 TimeCreated 

 [ SystemTime]  2016-02-11T05:43:24.000000000Z 

 EventRecordID 8425 

 Channel Application 

 Computer RD00155DF88E6C 

 Security 


 EventData 

 WaWorkerHost.exe 
 2.7.1198.742 
 5637c827 
 KERNELBASE.dll 
 6.2.9200.17366 
 554d4531 
 e0434352 
 000000000004aea8 
 884 
 01d1648f1e7cfdf5 
 E:\base\x64\WaWorkerHost.exe 
 D:\Windows\system32\KERNELBASE.dll 
 5d28a4a7-d082-11e5-9403-00155df88e6c 

错误消息 2:

System 

 Provider 

 [ Name]  .NET Runtime 

 EventID 1026 

 [ Qualifiers]  0 

 Level 2 

 Task 0 

 Keywords 0x80000000000000 

 TimeCreated 

 [ SystemTime]  2016-02-11T05:43:24.000000000Z 

 EventRecordID 8424 

 Channel Application 

 Computer RD00155DF88E6C 

 Security 


 EventData 

 Application: WaWorkerHost.exe Framework Version: v4.0.30319 Description:      The process was terminated due to an unhandled exception. Exception Info: System.TypeInitializationException Stack: at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<InitializeRole>b__0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()  

任何帮助将不胜感激!

【问题讨论】:

    标签: c# azure visual-studio-2015


    【解决方案1】:

    确保您的项目引用升级版的 SDK 程序集,例如 Microsoft.WindowsAzure.Diagnostics 和 Microsoft.WindowsAzure.ServiceRuntime。显然,将解决方案升级到最新的 SDK 不会更新程序集参考。您可能还必须更新配置文件以获得正确的程序集版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-05
      • 1970-01-01
      • 2011-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多