Kar*_*sar 5 azure azure-web-roles
我有一个问题如下:
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, Version=2.3.0.0, Culture=neutral, 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, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!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 [HKLM\Software\Microsoft\Fusion!EnableLog].
Run Code Online (Sandbox Code Playgroud)
只有在发布到Windows Azure网站(WAWS)时才会出现此问题.我想检测我是否在Windows Azure模式下运行.这可能在WAWS中吗?只有在我打电话时才会发生此错误Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.IsAvailable.
我假设WAWS环境会安装Azure SDK,对吧?或者这仅适用于云服务?
我已经看了一些解决方案,告诉你手动将它包含在x64或x86版本中,但我不希望受到限制或类似的解决方法.
我在发布 Web 应用程序时遇到了同样的错误。在尝试了网络上的所有其他解决方案后,以下终于对我有用:
在 Azure 门户中,选择您的 Web 应用程序。选择“设置 > 应用程序设置”。将平台值从 32 位更改为 64 位。重新发布。
| 归档时间: |
|
| 查看次数: |
2415 次 |
| 最近记录: |