发布Windows Azure网站时无法加载文件或程序集“msshrtmi”
发布时间:2020-12-14 02:17:35 所属栏目:Windows 来源:网络整理
导读:我有一个问题如下: Could not load file or assembly 'msshrtmi,Version=2.3.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.Description: An unhandled exception occurre
我有一个问题如下:
Could not load file or assembly 'msshrtmi,Version=2.3.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'msshrtmi,PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi,PublicKeyToken=31bf3856ad364e35' could not be loaded. WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging,set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off,remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog]. 只有在发布到Windows Azure网站(WAWS)时才会出现此问题.我想检测我是否在Windows Azure模式下运行.这可能在WAWS中吗?仅当我调用Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.IsAvailable时才会发生此错误. 我假设WAWS环境会安装Azure SDK,对吧?或者这仅适用于云服务? 我已经看了一些解决方案,告诉你手动将它包含在x64或x86版本中,但我不希望受到限制或类似的解决方法. 解决方法
发布Web App时遇到同样的错误.在网上尝试了其他所有解决方案之后,以下内容最终对我有用:
在Azure门户中,选择您的Web App.选择“设置”>应用程序设置’.将Platform值从32位更改为64位.重新发布. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Windows中的cat .git / HEAD命令?
- windows – 如何使用PowerShell远程重命名域中的计算机?
- windows server 7月更新导致exchange的问题
- 为什么Windows XP防火墙在启动时不会使用域设置?
- powershell – Windows命令提示符:如何获取当前目录中所有
- Windows – 64位大型mallocs
- Guacamole安装教程
- 如何检测Microsoft Bing Maps中的缩放更改
- windows-server-2008 – 域用户可以RDP进入域控制器吗?
- server-message-block – 如何检查工作站在Windows上使用的
推荐文章
站长推荐
- WinForms应用程序中的Microsoft Chart控件 – 如
- Windows启动屏幕的标准大小
- windows-8 – 找不到名称/密钥AppBarButtonStyle
- Windows下ElasticSearch的Head安装及基本使用
- windows-server-2008 – 我们应该在部署Vista /
- 如何在Windows命令行中转义>签名?
- 如何在Windows 7上安装Python 3.5的cvxopt
- virtualbox ose windows二进制文件
- windows-phone-7 – 使用Windows Phone 7中的Web
- 为什么有条件地包含direct.h或sys / stat.h基于_
热点阅读