我有一个使用ActionMailer.Net的MVC4应用程序
此web应用托管在Azure云服务中。在本地机器上的Azure模拟器中运行时,一切运行正常。一旦我发布到Azure,我的角色就无法初始化。
如果我查看实例的智能竞态错误,我可以看到它试图加载System.Web.MVC,但失败了。进一步调查,它可能试图加载MVC3库,但失败了,因为它找不到该版本。
有没有人遇到过这个问题并找到了解决方案?
发布于 2013-09-14 01:36:40
您是否在web.config中将旧的MVC引用重定向到4.0?
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>发布于 2013-09-18 18:57:49
在bitbucket的ActionMailer.Net论坛上找到了解决方案:
https://bitbucket.org/swaj/actionmailer.net/issue/40/mvc3-dependancy
https://stackoverflow.com/questions/18785076
复制相似问题