有关如何解决此错误的任何想法?我现在陷入困境,很难找到阅读。任何帮助将不胜感激:
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
答案 0 :(得分:1)
每当我重新安装操作系统或新电脑时,都会收到此错误消息。按照此处的说明始终为我修复:http://www.sitefinity.com/developer-network/knowledge-base/details/type-is-not-resolved-for-member-'microsoft.identitymodel.claims.claimsprincipal-microsoft.identitymodel
我希望这有用!
答案 1 :(得分:0)
我们已通过Project Manager工具将Sitefinity v-8.1升级到v-9.2。 见Img:Sitefinity项目经理
&GT;&GT;操作&gt;&gt;升级
成功收到消息后。我们运行应用程序。但我们在屏幕上收到错误消息。请参阅以下错误消息:
错误:
成员未解析类型 “Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel”。
解决此问题。首先,您需要再次构建解决方案,然后从'bin'文件夹中复制.dll文件“Microsoft.IdentityModel.dll”并粘贴到以下文件夹中。
请在此处查看以下路径:
C:\Program Files (x86)\Common Files\microsoft shared\DevServer\11.0
复制dll文件后,您需要重新启动系统或重建解决方案。 注意:请重新启动应用程序池和站点。
现在,我们需要最新的许可证密钥。哪个与9.2.x兼容。
答案 2 :(得分:0)
我遇到了同样的问题。 已通过以下步骤解决:
为Web应用程序项目指定IIS Web服务器