C# 未找到方法:';Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.ClaimsIdentity)和#x27;
我正在将网站从Windows server 2008 R2 Standard上运行IIS 7.5的web服务器迁移到Windows server 2012 R2上运行IIS 8.5的web服务器。我目前收到下面的消息。我知道System.Security.Claims应该在mscorlib.dll中,这似乎已经到位了。我真的不确定问这个问题还能有什么帮助,但如果有人能给我指出正确的方向,那就太好了!谢谢 “/profile”应用程序中出现服务器错误。 说明:执行过程中发生未处理的异常 当前的web请求。请查看堆栈跟踪以了解更多信息 有关错误的信息及其在代码中的来源 异常详细信息:System.MissingMethodException:未找到方法: “空虚 System.Security.Claims.ClaimsIdentity..ctor(System.Security.ClaimsIdentity)“” 源错误: 堆栈跟踪: 版本信息:Microsoft.NET Framework版本:4.0.30319; ASP.NET版本:4.6.1069.1C# 未找到方法:';Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.ClaimsIdentity)和#x27;,c#,asp.net,security,iis,C#,Asp.net,Security,Iis,我正在将网站从Windows server 2008 R2 Standard上运行IIS 7.5的web服务器迁移到Windows server 2012 R2上运行IIS 8.5的web服务器。我目前收到下面的消息。我知道System.Security.Claims应该在mscorlib.dll中,这似乎已经到位了。我真的不确定问这个问题还能有什么帮助,但如果有人能给我指出正确的方向,那就太好了!谢谢 “/profile”应用程序中出现服务器错误。 说明:执行过程中发生未处理的异常 当前的we
我可以想到三个原因:
我可以想到三个原因:
我在我们的一台windows 2012 r2服务器上也遇到了同样的问题。使用表单标识构建的MVC应用程序抛出错误 我们发现一个特定的Microsoft更新补丁(KB3098785)导致了该问题
我们卸载了修补程序,重新启动了服务器。瞧,一切都正常运行我在一台windows 2012 r2服务器上也遇到了同样的问题。使用表单标识构建的MVC应用程序抛出错误 我们发现一个特定的Microsoft更新补丁(KB3098785)导致了该问题
我们卸载了补丁程序,重新启动了服务器。一切都很正常。解释应用程序的功能,描述特定场景,并发布一些代码可能会有所帮助。我只知道你正在“迁移”你的网站。谢谢。不幸的是,我对它不是很熟悉。我意识到我在抓救命稻草。当我尝试登录时,会显示此特定消息。我会看看是否能找出相关的代码,但很多代码都是经过编译的,我没有原始的源代码。我对它的熟悉程度不如你,而且我也没有源代码。:)解释应用程序的功能、描述特定场景以及发布一些代码可能会有所帮助。我只知道你正在“迁移”你的网站。谢谢。不幸的是,我对它不是很熟悉。我意识到我在抓救命稻草。当我尝试登录时,会显示此特定消息。我会看看是否能找出相关的代码,但很多代码都是经过编译的,我没有原始的源代码。我对它的熟悉程度不如你,而且我也没有源代码。:)
Method not found: 'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)'.
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.
[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