Visual Studio 2015 - Unable to validate data error RRS feed

  • Question

  • Hi All,

    We are having a Web Project using machinekey in validation and works very fine in Visual Studio 2010.

    But the same source is failing when ran from Visual Studio 2015. The error which we are getting is:

    System.Web.HttpException was unhandled by user code
      Message=Unable to validate data.
           at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
           at System.Web.Security.MembershipAdapter.EncryptOrDecryptData(Boolean encrypt, Byte[] buffer, Boolean useLegacyMode)
           at System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword)
           at System.Web.Security.SqlMembershipProvider.UnEncodePassword(String pass, Int32 passwordFormat)
           at System.Web.Security.SqlMembershipProvider.GetPassword(String username, String passwordAnswer)
           at System.Web.Security.MembershipUser.GetPassword()

    We could not find any solution related to this in any of the groups.

    I suspect this to be something related to the IIS Express version / configuration on which the Website runs when executed from Visual Studio 2010 and Visual Studio 2015.

    Any help on this would be greatly appreciated!

    Many Thanks,

    WIth Warm Regards,


    Friday, March 16, 2018 9:06 PM

All replies

  • Hi SujanATiD,

    Thanks for posting here.

    Since this forum is discuss the Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor, as your issue is more related to the IIS, I suggest that you can open this issue with a new thread on the IIS forum http://forums.iis.net/ on the Official Microsoft IIS site for better support.

    If you have some VS IDE questions, please feel free to contact us. We will try our best to give you a solution.

    Thanks for your understanding and cooperation.

    MSDN Community Support Please remember to click Mark as Answer. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 19, 2018 6:56 AM
  • Thanks For the Reply Leo Liu!

    Now Posted it in the IIS Forum.

    Many Thanks,

    WIth Warm Regards,


    Tuesday, March 20, 2018 10:24 AM