簡體   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

我擁有曾經在Visual Studio 2012和Azure Sdk 2.5上正常運行的Web應用程序,並且想升級到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()  

任何幫助將不勝感激 !!

確保您的項目引用SDK程序集的升級版本,例如Microsoft.WindowsAzure.Diagnostics和Microsoft.WindowsAzure.ServiceRuntime。 顯然,將解決方案升級到最新的SDK不會更新程序集引用。 您可能還必須更新配置文件以獲取正確的程序集版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM