首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >方法未找到:'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)‘’

方法未找到:'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)‘’
EN

Stack Overflow用户
提问于 2016-11-15 16:49:00
回答 2查看 2.2K关注 0票数 0

我正在将一个站点从Windows 2008 R2标准上运行IIS7.5的一个web服务器迁移到Windows 2012 R2上的一个IIS8.5。我目前正在收到下面的信息。我知道System.Security.Claims应该在mscorlib.dll中,这似乎已经就位了。我不太确定还有什么能帮助我问这个问题,但是如果有人想要指出正确的方向,那就太好了!谢谢!

“/profile”应用程序中的服务器错误.

代码语言:javascript
复制
Method not found: 'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)'.

描述:是在执行当前web请求时发生的一个未处理的异常。请查看堆栈跟踪以获得有关错误的更多信息,以及它起源于代码的位置。 异常详细信息: System.MissingMethodException:方法未找到:'Void System.MissingMethodException 源错误:

代码语言:javascript
复制
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.

堆栈跟踪:

代码语言:javascript
复制
[MissingMethodException: Method not found: 'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)'.] 
System.Web.Security.FormsIdentity..ctor(FormsIdentity identity) +0             
System.Web.Security.FormsIdentity.Clone() +35    
System.Security.Principal.GenericPrincipal.AddIdentityWithRoles(IIdentity identity, String[] roles) +57
System.Web.Security.FormsAuthenticationModule.OnAuthenticate(FormsAuthenticationEventArgs e) +338    
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +88    
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+80    
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161

版本信息:微软.NET框架版本:4.0.30319;ASP.NET版本:4.6.1069.1

EN

回答 2

Stack Overflow用户

发布于 2017-07-27 09:42:45

在我们的windows 2012 r2服务器中,我也面临着同样的问题。使用表单标识构建的MVC应用程序正在抛出错误。

我们发现是一个特定的微软更新补丁(KB3098785)导致了这个问题。

我们关闭了修补程序,重新启动了服务器,voila..everything运行良好。

票数 2
EN

Stack Overflow用户

发布于 2016-11-16 01:58:03

我能想到三个原因:

  1. 您错过了应用程序需要的DLL。可能需要在服务器上安装库或框架。
  2. 也许您的两个服务器正在运行不同版本的.NET框架。检查这两台服务器并查看它们有哪些版本,所有详细信息都可以在MSDN文章中找到:https://msdn.microsoft.com/en-us/library/hh925568%28v=vs.110%29.aspx
  3. 这可能是一个安全/权限的问题。尝试更改IIS中的应用程序池以作为管理员运行,如果问题消失,则是权限问题。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40615347

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档