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.Configuration.MachineKeySection.Encrypt OrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
at System.Web.Security.MembershipAdapter.EncryptOrDec ryptData(Boolean encrypt, Byte[] buffer, Boolean useLegacyMode)
at System.Web.Security.MembershipProvider.DecryptPass word(Byte[] encodedPassword)
at Egen.EgenMembershipProvider.UnEncodePassword(Strin g pass, Int32 passwordFormat)
at Egen.EgenMembershipProvider.GetPassword(String username, String passwordAnswer)
App.Config:
<system.web>
<machineKey validation="SHA1" validationKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps" decryptionKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps" />
...
Web.config:
<system.web>
<machineKey validation="SHA1" validationKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps" decryptionKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps"/>
...