.net – 无法在azure上找到程序集“Microsoft.IdentityModel”错
发布时间:2020-12-13 22:38:54 所属栏目:Windows 来源:网络整理
导读:我正在为我的MVC3 Web应用程序使用ACS身份验证.它在我的本地计算机上工作得很好.但是当我将其上传到Azure时.我收到此错误.我设置CopyLocal = True,请帮忙 Unable to find assembly 'Microsoft.IdentityModel,Version=3.5.0.0,Culture=neutral,PublicKeyToken
我正在为我的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/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows-7 – 同一台PC上的Windows Virtual PC和VirtualBox
- windows API下的模板缓冲(stencil buffer)
- 在不使用System.Windows.Input.ICommand的情况下在WPF中实现
- windows – 删除文件链接而不清除只读位
- 如何使用Microsoft R Open 3.3.2获得rmarkdown 1.2
- windows-phone-7 – Windows phone OS 7.0 vs OS 7.1
- windows-server-2008-r2 – AT命令w / 2008 R2意外地将任务
- 如何在Windows上获取线程堆栈信息?
- 从服务器入手防止.mdb文件被下载的方法
- 记事本 – 在Windows上以只读模式打开文件
推荐文章
站长推荐
热点阅读