Hi Rick,
I understand that you experience a "Could not load file or assembly 'msshrtmi' or one of its dependencies" after deployment on the cloud.
When you do a rebuild for the web role project, may I ask you to check if a msshrtmi.dll file in the bin folder or not? If yes, then please check if it is 64bit or 32bit using
Dependency Walker. If it is 32bit, please try either of the following options to prevent outputing this dll file to bin folder.
1. Target the web role project to x64 and recreate the azure service project. This is option is confirmed by
http://social.msdn.microsoft.com/Forums/en/windowsazure/thread/286cecf6-1423-4ef3-93f9-0eb8a67d8192.
2. Open the web site project file using Notepad and remove the PlatformTarget element from all configuration property groups. This option is quoted from
http://tomkrueger.wordpress.com/2010/07/27/azure-deployment-issue-after-upgrading-to-visual-studio-2010-and-net-4-0/.
3. Write Post-build event command to delete msshrtmi.dll when a build action is successfully performed. To do this, please right click the web role project and select Properties. Select the Build Events tab, in the "Post-build event command line" textbox,
input the following command:
cd $(TargetDir)
del msshrtmi.dll
Thanks,
Wengchao Zeng
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact
msdnmg@microsoft.com.
Microsoft One Code Framework