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

Forums / Bugs & Issues / Issue: 'Telerik.Sitefinity.Security.UserIdentity' in assembly 'Telerik.Sitefinity, Version=5.4.4010.0 is not marked as serializable

Issue: 'Telerik.Sitefinity.Security.UserIdentity' in assembly 'Telerik.Sitefinity, Version=5.4.4010.0 is not marked as serializable

4 posts, 0 answered
  1. Ganna
    Ganna avatar
    2 posts
    Registered:
    01 Jun 2012
    19 Mar 2013
    Link to this post
    I have upgraded Sitefinity from 5.2 to 5.4 version and getting this error which stops me from any development. It happens first thing after I start debugging website. My current fix is Clean solution. What can be cause? Could be that upgrade did not go well?

    Server Error in '/' Application.Type 'Telerik.Sitefinity.Security.UserIdentity' in assembly 'Telerik.Sitefinity, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' is not marked as serializable.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 'Telerik.Sitefinity.Security.UserIdentity' in assembly 'Telerik.Sitefinity, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' is not marked as serializable.

    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.

    Any help or advice would be appreciated.
    Thank you
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    21 Mar 2013
    Link to this post
    Hi Ganna,

    From the error message the UserIdentity type is not meant to be serializable. The exception is related to the environment or network setup from where the code for authentication is executed. If you are running the code trough proxy of network infrastructure that limits access in certain way try executing it outside of this environment or check what restrictions are applied in regard to IP addresses in the network.

    Kind regards,
    Jen Peleva
    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
  3. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    25 Apr 2014 in reply to Jen Peleva
    Link to this post

    Hi Jen,

     We have a similar error and once the user logs in, we redirect the user to the home page which displays the error. The login page is located at: /homePage/login and the home page URL is /homePage.

    Can this lead to the issue?

    The environment that we are working is localhost with administrative permission and we do not have any proxy installed on our servers.

     What might be the cause of this?

     Your prompt response is appreciated. Please help ASAP.

  4. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    07 Dec 2016
    28 Apr 2014
    Link to this post
    Hello Siddesh,

    Based on our experience, such issue could be caused if the project is run on Visual Studio Development server (Cassini)?

    You could try to run it on IIS, following that article.

    Regards,
    Svetoslav Manchev
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered