When access a Windows Azure Web Sites, got follow error message.
Could not load file or assembly 'msshrtmi, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Assembly “msshrtmi” is installed on the GAC of hosting machine for Windows Azure Web Sites. If your web site references another version of “msshrtmi”, then you will hit this issue.
The solution is copy the required assembly required to the web site’s bin folder.
For version 1.6 SDK, you can get it from here.
You need to install Windows Azure SDK 1.6 on your local system, and you can find this msshrtmi.dll under C:\Program Files\Windows Azure SDK\v1.6\bin\runtimes\base\x86.
For deployed web site, please using FTP to copy the msshrtmi.dll to you bin folder of you Azure Web Site.
Or you can reference this assembly in your project, and set the “Copy Local” to true. Then redeploy the project from Visual Studio.
See you next time,
Wei from APGC DSI Team