Azure WebRole无法在模拟器中正常启动

时间:2014-08-21 10:19:41

标签: azure android-emulator azure-web-roles

我尝试在visual studio下使用Ctrl + F5在模拟器下运行一个azure项目并遇到一些问题。我的网络角色无法正常启动。 azure sdk版本为2.2,使用visual studio 2012。

当检查了WaIISHost.log时,我发现了以下异常:

WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:14.949, INFO ] Starting host process.
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:16.477, INFO ] DebuggerAttachStart START
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:16.519, INFO ] Found role model xml file
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:16.727, INFO ] Creating endpoint IPAddress:127.255.0.0 PortNum:444  Protocol:https HostHeader:
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:16.728, INFO ] Adding site to AppModel with name , endpoints https:127.255.0.0:444:
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:16.999, INFO ] Reacl all resources for iis users
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:17.021, INFO ] Reacl all resources for iis users has been finished.
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:17.081, INFO ] Wait for iisconfigurator initialization global event to be set
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:17.082, INFO ] Found iisconfigurator initialization global event
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:17.082, INFO ] Iisconfigurator initialization global event set
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:17.251, INFO ] Changing operation timeout to 00:05:00
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:17.3, INFO ] Attempt Deploy with RoleInstanceId=deployment22(479).XXX RoleRoot=XXX optional SitesDestination=
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:18.035, INFO ] Successfully deployed sites
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:18.038, INFO ] StartDebuggingInformationEndpoint START
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:18.073, INFO ] StartDebuggingInformationEndpoint END
WaIISHost Information: 0 : [00018004:00000001, 2014/08/21 09:57:18.076, INFO ] DebuggerAttachComplete START
WaIISHost Information: 0 : [00018004:00000008, 2014/08/21 09:57:21.138, ERROR] Unhandled exception: IsTerminating 'True', Message 'System.InvalidOperationException: the role environment has not been initialized
   at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<InitializeRole>b__0()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()'
Microsoft.WindowsAzure.ServiceRuntime Critical: 1 : Unhandled Exception:
System.InvalidOperationException: the role environment has not been initialized
   at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<InitializeRole>b__0()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

我在互联网上搜索了很多,无法为此提出解决方案。有谁知道这件事?任何建议都表示赞赏。

继续: 我可以在重新启动计算机后正常启动Web角色。但问题的根本原因对我来说仍然不清楚。保留这些问题,以防有人可能遇到同样的问题。

0 个答案:

没有答案