1

このエラーを解決する方法について何か考えはありますか?私は現在立ち往生していて、これについて読むのを見つけるのに苦労しています。どんな助けでも大歓迎です:

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 
4

3 に答える 3

1

OS または新しい PC を再インストールするたびに、このエラーが発生します。ここの指示に従うと、常に修正されます。 -microsoft.identitymodel

これがお役に立てば幸いです。

于 2013-01-05T21:53:07.160 に答える
0

私は同じ問題に直面していました。 次の手順で解決しました。

Web アプリケーション プロジェクトの IIS Web サーバーを指定する

  1. ソリューション エクスプローラーで、Web サーバーを指定する Web アプリケーション プロジェクトの名前を右クリックし、[プロパティ] をクリックします。
  2. [プロパティ] ウィンドウで、[Web] タブをクリックします。
  3. [サーバー] で、[ローカル IIS Web サーバーを使用する] をクリックします。
于 2017-05-17T08:08:34.347 に答える