我们有一个Azure工作者角色 - .NET 4.0 - 在osFamily ="2"(Server 2008R2)上部署到Azure时可以正常运行.但是,当我们使用osFamily ="3"(Server 2012)进行部署并且没有其他代码更改时,工作者角色会不断回收服务器事件日志中的以下2个错误:
错误应用程序名称:WaWorkerHost.exe,版本:6.0.6002.18488,时间戳:0x505cf7ca错误模块名称:KERNELBASE.dll,版本:6.2.9200.16384,时间戳:0x5010ab2d异常代码:0xe0434352错误偏移量:0x00000000000189cc错误进程id:0xefc错误应用程序启动时间:0x01cdd4318f76d221错误应用程序路径:E:\ base\x64\WaWorkerHost.exe错误模块路径:D:\ Windows\system32\KERNELBASE.dll报告ID:cf1810b0-4024-11e2-93ec-00155d4250e3错误包全名:错误包相关的应用程序ID:
应用程序:WaWorkerHost.exe Framework版本:v4.0.30319描述:由于未处理的异常,进程已终止.异常信息:System.InvalidOperationException Stack:在System.Threading.ExecutionContext.RunInternal的Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__0()中(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,Boolean )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 System.Threading.ThreadHelper.ThreadStart()的.Object)
有任何想法吗?
更新------------------发现第三个例外:
应用程序:WaWorkerHost.exe Framework版本:v4.0.30319描述:由于未处理的异常,进程已终止.异常信息:System.Security.Cryptography.CryptographicException Stack:at System.Threading.ExecutionContext.RunInternal的Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__0()(System.Threading.ExecutionContext,System.Threading.ContextCallback,System System.Threading.ExecutionContext.Run上的System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,Boolean)中的.Object,Boolean)(System.Threading.ExecutionContext,System.Threading) System.Threading.ThreadHelper.ThreadStart()中的.ContextCallback,System.Object)
我们使用LocalComputer/My中的证书来解密连接字符串.证书成功部署到OsFamily ="2"(Server 2008R2)并将Worker角色用户添加到私钥(在RDP会话中验证).但是,对于OsFamily ="3"(Server 2012) - 证书未部署,因此加密错误.跟进Azure支持... UGH.
来自Azure支持工程师:
深入挖掘之后,我发现了不同之处:在OS系列2中,WaWorkerHost由Role初始化过程生成的临时帐户(具有GUID名称)运行,该帐户具有访问证书私钥的权限; 在OS系列3中,WaWorkerHost由"NETWORK SERVICE"帐户运行,此帐户没有私钥访问权限.
我正联系制作组,我们会更深入地研究这个问题.我会及时向大家发布.
| 归档时间: |
|
| 查看次数: |
1857 次 |
| 最近记录: |