他为’Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment
发布时间:2020-12-14 02:17:10 所属栏目:Windows 来源:网络整理
导读:将我的Azure Web应用程序移动到SDK 2.1后,我开始了 type initializer for ‘Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment’ threw an exception. 错误信息.这在本地环境中工作正常,但在Azure上出现上述错误. 我的web.config已经有以下条目: runt
将我的Azure Web应用程序移动到SDK 2.1后,我开始了
错误信息.这在本地环境中工作正常,但在Azure上出现上述错误. 我的web.config已经有以下条目: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.7.0.0" newVersion="1.7.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.WindowsAzure.ServiceRuntime" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.8.0.0" newVersion="1.8.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.WindowsAzure.Diagnostics" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> 和 <system.diagnostics> <trace> <listeners> <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,Microsoft.WindowsAzure.Diagnostics,Version=2.1.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"> <filter type="" /> </add> </listeners> </trace> </system.diagnostics> 仍然没有在实时Azure中工作.有人可以帮帮我吗? 解决方法
您可能正在运行不同于实时Azure实例角色上安装的Windows Azure DLL(默认情况下).右键单击项目中的Microsoft.WindowsAzure.[any]引用,并在“属性”窗口中检查版本号,并尝试将它们与配置文件中的版本号相匹配.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- Windows – 即使已删除GPO,通过组策略首选项部署
- DLL – 如何在Windows上的D语言程序中使用SQLite
- windows – 是否可以在NASM中使用DB指令在.text段
- AWS Elastic Load Balancer(ELB)背后的Windows身
- windows – Delphi:如何知道TEdit何时改变大小?
- 通过PowerShell访问MSMQ
- windows-server-2003 – 从目录服务还原模式中降
- datatemplate – Metro风格应用程序中的XAML图像
- 如何在Windows中创建进程而不是等待它完成?
- windows – 如何有效地检索目录中的文件数?
热点阅读