簡體   English   中英

成員“ Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel”的類型未解析

[英]Type is not resolved for member “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 

每當我重新安裝操作系統或新電腦時,都會出現此錯誤。 請按照此處的說明為我自己修復它: http : //www.sitefinity.com/developer-network/knowledge-base/details/type-is-not-resolved-for-member-'microsoft.identitymodel.claims.claimsprincipal -microsoft.identitymodel

我希望這是有幫助的!

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

>>動作>>升級

內嵌圖片1

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

錯誤:

成員“ 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兼容。

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

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

  1. 在解決方案資源管理器中,右鍵單擊要為其指定Web服務器的Web應用程序項目的名稱,然后單擊“屬性”。
  2. 在“屬性”窗口中,單擊“ Web”選項卡。
  3. 在“服務器”下,單擊“使用本地IIS Web服務器”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM