1

有關如何解決此錯誤的任何想法?我困在此刻,很難找到這方面的閱讀。任何幫助將不勝感激:類型未解析成員「Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel」

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

這是Sitefinity的升級還是全新安裝,以及您正在運行的版本的任何信息都會對您有所幫助。 –

回答

0

我們已通過項目管理器工具將Sitefinity v-8.1升級到v-9.2。 參見圖:Sitefinity項目經理

>>行動>>升級

Inline image 1

成功得到消息後。我們運行該應用程序。但是我們在屏幕上收到了錯誤信息。請參閱以下錯誤信息:

錯誤:

Type is not resolved for member "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兼容。

0

我正面臨同樣的問題。 通過以下步驟解決它:

指定IIS Web服務器的Web應用程序項目

  1. 在解決方案資源管理器中,用鼠標右鍵單擊您想要的Web應用程序 項目的名稱指定一個Web服務器,然後單擊 屬性。
  2. 在「屬性」窗口中,單擊「Web」選項卡。
  3. 在服務器下,單擊使用本地IIS Web服務器。
相關問題