微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

.net – 无法在azure上找到程序集“Microsoft.IdentityModel”错误

我正在为我的MVC3 Web应用程序使用ACS身份验证.它在我的本地计算机上工作得很好.但是当我将其上传到Azure时.我收到此错误.我设置copyLocal = True,请帮忙

Unable to find assembly 'Microsoft.IdentityModel,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35'. 
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.Runtime.Serialization.SerializationException: Unable to find assembly 'Microsoft.IdentityModel,PublicKeyToken=31bf3856ad364e35'.

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.

解决方法

更多信息.复制本地,即.确保Microsoft.IdentityModel.dll位于bin目录中,除非您的代码使用RoleEnvironment API,否则它将起作用.如果是这种情况,那么您将遇到以下已知问题:

http://msdn.microsoft.com/en-us/library/windowsazure/hh403974.aspx

在这种情况下,Microsoft.IdentityModel将需要存在于Azure VM的GAC中.要完成此任务,请使用启动任务.这篇文章描述了实现此目的的两种方法

http://blogs.infosupport.com/adding-assemblies-to-the-gac-in-windows-azure/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐