我有以下问题:
问题仅在发布到Windows Azure网站(WAWS)时发生。 我想检测是否在Windows Azure模式下运行。 这在WAWS中是否可行? 只有在调用Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.IsAvailable时才会发生此错误。
我认为WAWS环境应该已安装Azure SDK,是吗? 还是仅适用于云服务?
我查看了一些解决方案,告诉您手动在x64或x86版本中包含它,但我不希望受到这种限制,或类似的解决方法。
我遇到了一个问题:
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].
问题仅在发布到Windows Azure网站(WAWS)时发生。 我想检测是否在Windows Azure模式下运行。 这在WAWS中是否可行? 只有在调用Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.IsAvailable时才会发生此错误。
我认为WAWS环境应该已安装Azure SDK,是吗? 还是仅适用于云服务?
我查看了一些解决方案,告诉您手动在x64或x86版本中包含它,但我不希望受到这种限制,或类似的解决方法。