首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >未为member "Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel解析类型“

未为member "Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel解析类型“
EN

Stack Overflow用户
提问于 2012-12-18 23:23:50
回答 3查看 5.7K关注 0票数 1

对如何解决这个错误有什么想法吗?我被困在此时此刻,很难找到阅读这篇文章的机会。任何帮助都将不胜感激:

代码语言:javascript
运行
复制
Server Error in '/www' Application. 

Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal,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: Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, 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. 

Stack Trace: 

[SerializationException: Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
   Microsoft.VisualStudio.WebHost.Connection.get_LocalIP() +0
   Microsoft.VisualStudio.WebHost.Request.GetLocalAddress() +43
   Microsoft.VisualStudio.WebHost.Request.GetServerName() +11
   System.Web.HttpRequest.get_Url() +140
   Telerik.Sitefinity.Security.Claims.<>c__DisplayClass9.<SkipAuthentication>b__8(String aip) +17
   System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +151
   Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.SkipAuthentication(HttpRequest request) +74
   Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args) +201
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 
EN

回答 3

Stack Overflow用户

发布于 2013-01-06 05:53:07

每当我重新安装我的操作系统或一台新的pc时,我都会遇到这个错误。遵循这里的说明总是能帮我解决这个问题:http://www.sitefinity.com/developer-network/knowledge-base/details/type-is-not-resolved-for-member-'microsoft.identitymodel.claims.claimsprincipal-microsoft.identitymodel

我希望这对你有帮助!

票数 1
EN

Stack Overflow用户

发布于 2017-02-03 13:18:23

我们已通过项目管理器工具将Sitefinity v-8.1升级到v-9.2。参见Img: Sitefinity项目管理器

Actions >> Upgrade

成功获取消息后。我们运行应用程序。但是我们在屏幕上看到了错误信息。请查看以下错误消息:

错误:

未为member "Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel解析

类型“。

来解决这个问题。首先,您需要再次构建解决方案,然后将.dll文件"Microsoft.IdentityModel.dll“从”bin“文件夹复制并粘贴到以下文件夹中。

请看下面的路径:

代码语言:javascript
运行
复制
C:\Program Files (x86)\Common Files\microsoft shared\DevServer\11.0

复制dll文件后,您将需要重新启动系统或重新生成解决方案。注意:请重新启动应用程序池和站点。

现在,我们需要最新的许可证密钥。它与9.2.x兼容。

票数 0
EN

Stack Overflow用户

发布于 2017-05-17 16:08:34

我也面临着同样的问题。通过以下步骤解析了

为Web应用程序项目指定IIS服务器

  1. 在解决方案资源管理器中,右键单击要为其指定网站服务器的网站应用程序项目的名称,然后单击属性。
  2. 在属性窗口中,单击网站选项卡。
  3. 在服务器下,单击使用本地IIS服务器。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13936103

复制
相关文章

相似问题

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