I wrote a small c# winform app to migrate some user info from one DB to another. The application works jsut fine but when I use the web application now it bombs trying to read the users password with "Unable to validate data". This is from the Membership class.
In the exe's aspp.config I have the same machinekey as the web applications web.config so their shouldn't be an encryption issue. Does anyone have any suggestions?
StackTrace:
at System.Web.Conf iguration.Machi neKeySection.En cryptOrDecryptD ata(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSy mAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
at System.Web.Secu rity.Membership Adapter.Encrypt OrDecryptData(B oolean encrypt, Byte[] buffer, Boolean useLegacyMode)
at System.Web.Secu rity.Membership Provider.Decryp tPassword(Byte[] encodedPassword )
at Egen.EgenMember shipProvider.Un EncodePassword( String pass, Int32 passwordFormat)
at Egen.EgenMember shipProvider.Ge tPassword(Strin g username, String passwordAnswer)
App.Config:
<system.web>
<machineKey validation="SHA 1" validationKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s" decryptionKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s" />
...
Web.config:
<system.web>
<machineKey validation="SHA 1" validationKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s" decryptionKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s"/>
...
In the exe's aspp.config I have the same machinekey as the web applications web.config so their shouldn't be an encryption issue. Does anyone have any suggestions?
StackTrace:
at System.Web.Conf iguration.Machi neKeySection.En cryptOrDecryptD ata(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSy mAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
at System.Web.Secu rity.Membership Adapter.Encrypt OrDecryptData(B oolean encrypt, Byte[] buffer, Boolean useLegacyMode)
at System.Web.Secu rity.Membership Provider.Decryp tPassword(Byte[] encodedPassword )
at Egen.EgenMember shipProvider.Un EncodePassword( String pass, Int32 passwordFormat)
at Egen.EgenMember shipProvider.Ge tPassword(Strin g username, String passwordAnswer)
App.Config:
<system.web>
<machineKey validation="SHA 1" validationKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s" decryptionKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s" />
...
Web.config:
<system.web>
<machineKey validation="SHA 1" validationKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s" decryptionKey=" B03F5F7F11D50A3 AB03F5F7F11D50A 3A123F5F7F11D50 A3AB03F5F7F11D5 0A3C,IsolateApp s"/>
...