简体   繁体   English

升级到Visual Studio 2015和Azure Sdk 2.8.2后,Azure Worker角色未启动

[英]Azure Worker role not starting after upgrade to Visual studio 2015 and Azure Sdk 2.8.2

I have Web Application that used to work fine on Visual Studio 2012 and Azure Sdk 2.5 and would like to upgrade to Visual Studio 2015 and Azure Sdk 2.8.2. 我拥有曾经在Visual Studio 2012和Azure Sdk 2.5上正常运行的Web应用程序,并且想升级到Visual Studio 2015和Azure Sdk 2.8.2。

It builds without any problems and runs in emulator with no problems. 它的构建没有任何问题,并且可以在模拟器中毫无问题地运行。

When I deploy to Windows Azure the role i get this message - 当我部署到Windows Azure角色时,我收到此消息-

"Recycling (Waiting for role to start... Sites were deployed. [2016-02-11...])" “回收(正在等待角色开始...已部署站点。[2016-02-11 ...])”

I found the below error messages in the windows event viewer in remote login... 我在远程登录的Windows事件查看器中发现以下错误消息...

Error Message 1: 错误消息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 

Error Message 2: 错误消息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()  

Any help will be appreciated !! 任何帮助将不胜感激 !!

Make sure your project refers to upgraded version of SDK assemblies like Microsoft.WindowsAzure.Diagnostics and Microsoft.WindowsAzure.ServiceRuntime. 确保您的项目引用SDK程序集的升级版本,例如Microsoft.WindowsAzure.Diagnostics和Microsoft.WindowsAzure.ServiceRuntime。 Apparently, upgrading the solution to latest SDK doesn't update assembly reference. 显然,将解决方案升级到最新的SDK不会更新程序集引用。 You may also have to update your config file for correct assembly version. 您可能还必须更新配置文件以获取正确的程序集版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM