+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal...

Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal...

20 posts, 0 answered
  1. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    07 Mar 2012
    Link to this post
    Just created a new Sitefinity 5 project on my local development machine running SQL Express and IIS Express.



    I am getting the following error, and I can't seem to determine how to solve it. Any ideas? I am stuck.



    Server Error in '/' 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() +68 Microsoft.VisualStudio.WebHost.Request.GetServerName() +52 System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) +105 System.Web.HttpRequest.get_Url() +74 Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args) +449 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69 



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17379           
  2. Jose Antonio de Alarcon
    Jose Antonio de Alarcon avatar
    10 posts
    Registered:
    29 Jun 2009
    07 Mar 2012
    Link to this post
    I have de same problem. I´m running on XP
    Supported Operating Systems for Windows Identity Foundation : Windows 7, Windows Server 2008 R2, Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2

    ¿is possible Run SF5 on xp and 2003 System?
  3. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    07 Mar 2012
    Link to this post
    In fairness, I should disclose that Sitefinity runs like a champ on my Window 7 developer station. The error I saw happened on my Win 8 beta test station. (Doing my duty of testing all my software on it) I didn't know if that error was Win 8 specific or something I forgot during initial Sitefinity configuration.
  4. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    07 Mar 2012
    Link to this post
    Hi Dan,

    Windows 8 Beta is still not supported, so there might be some issues running Sitefinity on it. However I want to note to try to setup and run Sitefinity on IIS 7.5 ( not express ) to check whether you experience the same problem.

    @Jose Antonio: You might have troubles running Sitefinity on IIS when using Windows XP as it supports only IIS 5 whether you need IIS6+. Also you may want to check our system requirements page:

    http://www.sitefinity.com/resources/system-requirements.aspx
     

    All the best,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    07 Mar 2012
    Link to this post
    Thanks for the tip - it is worth trying. I was using Cassini and then moved to IIS Express. So I'll switch to IIS 7.5 and report back.

    I totally understand about Win 8 Beta not being supported - I don't fault you guys at all. It has barely been available.
  6. Richard Baugh
    Richard Baugh avatar
    201 posts
    Registered:
    22 Aug 2012
    07 Mar 2012
    Link to this post
    I posted about an error I found when I upgraded a 4.4 site that was running on IIS6. You may find it helpful if you do run it on a system with IIS6.

  7. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    08 Mar 2012
    Link to this post
    Hi Richard,

    Thank you for sharing the information with the community. I am sure that it will be helpful for people in your situation.

    All the best,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    15 Mar 2012
    Link to this post
    This KB article solved it. Had to copy a dll to the right folder on my computer, restart VS and all is well. Thanks!

    http://www.sitefinity.com/devnet/kb/sitefinity-5-x/getting-type-is-not-resolved-for-member-microsoft-identitymodel-claims-claimsprincipal-exception.aspx



  9. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    15 Mar 2012
    Link to this post
    @Dan
    Thank's for the link. Did run into the exact same problem.
    Markus
  10. Bryan
    Bryan avatar
    6 posts
    Registered:
    04 Nov 2010
    27 Mar 2012
    Link to this post
    This is the answer. Thanks, Dan!
  11. Dave
    Dave avatar
    7 posts
    Registered:
    21 Aug 2012
    21 Aug 2012
    Link to this post
    FYI for others searching this later.  If you are using Visual Studio 2012, then you need to copy the DLL here instead:

    32bit: C:\Program Files\Common Files\Microsoft Shared\DevServer\11.0
    64bit: C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\11.0
  12. Abhilash Shamsunder
    Abhilash Shamsunder avatar
    10 posts
    Registered:
    05 Apr 2010
    26 Sep 2012
    Link to this post
    Thanks Dan! That's the answer.
  13. Craig
    Craig avatar
    82 posts
    Registered:
    07 Apr 2009
    19 Oct 2012 in reply to Dan Sorensen
    Link to this post
    I ran into this issue when I upgraded to Visual Studio 2012.  In fact I had the Microsoft.IdentityModel.dll in my bin folder and my Sitefinity 5.0.2800 site still did not work.  This went on for about a day before I discovered the solution.

    SOLUTION FOR VISUAL STUDIO 2012 USERS
    When you install Visual Studio 2012 you get .NET 4.5.  But you also need to install the Windows Identity Foundation framework which is separate.

    The way I fixed this issue was to open Web Platform Installer 4.0 and search for "Windows Identity Foundation".  Installed this component and restarted my machine and my Sitefinity web site works with no issues.  Enjoy!
  14. John
    John avatar
    26 posts
    Registered:
    10 Sep 2012
    18 Dec 2012
    Link to this post
    Is there an alternative solution available?
  15. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    21 Dec 2012
    Link to this post
    Hi John,

    Unfortunately the suggestions outlined in the article are the ones that currently fix the issue discussed in the article, therefore I would suggest to try one of the suggestions ( based on your case ) and let us know if the information provided here is helpful to you.

    Regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  16. Subha
    Subha avatar
    1 posts
    Registered:
    28 Jun 2013
    11 Jul 2013
    Link to this post
    Thanks for the solution. It worked for me.
  17. Anupam
    Anupam avatar
    1 posts
    Registered:
    18 Feb 2013
    02 Dec 2013 in reply to Dave
    Link to this post
    Thanks Dan. That was a really good suggestion. 
  18. arun
    arun avatar
    1 posts
    Registered:
    10 Dec 2013
    10 Dec 2013
    Link to this post
    Hi

    I am using sitefinity 6.2.4910.0 version and but still not able to debug the code.
    I am getting following issue.
    Development environment:
    OS - window 7
    Development tool - visual studio 2012 with pure mvc
    Please help me asap.



    Server Error in '/' 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() +68
    Microsoft.VisualStudio.WebHost.Request.GetServerName() +52
    System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) +105
    System.Web.HttpRequest.get_Url() +74
    Telerik.Sitefinity.Security.Claims.<>c__DisplayClass9.<SkipAuthentication>b__8(String aip) +46
    System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +146
    Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.SkipAuthentication(HttpRequest request) +141
    Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args) +335
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
  19. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    05 Dec 2016
    11 Dec 2013
    Link to this post
    Hi Arun,

    It seems that Microsoft Identity Foundation is not installed on your workstation. Please check the KB article provided from Dan Sorensen. I would advice to check and Craig's solution.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  20. Suresh
    Suresh avatar
    1 posts
    Registered:
    06 Feb 2014
    10 Feb 2014
    Link to this post
    I had the same issue -  Downloading and installing Windows Identity Foundation from the below link resolved the issue - http://www.microsoft.com/en-us/download/details.aspx?id=17331
20 posts, 0 answered