Last post Aug 28, 2007 09:42 PM by SalmonTraining
Aug 28, 2007 12:41 PM|oldcynic|LINK
Having spent just a few hours setting up CSK both locally, and remotely on my hosted space and was impressed.
I managed to combine membership tables into my application database and set myself up as an admin user enabling me to login both loacally and remotely gaining access to all admin functions of CSK.
Until, of course, and there always seems to be an 'of course' I came to register another user. It always fails... and redirects me to 'Errors.aspx' which I seem unable to get rid of (I'd like the full debug info) whatever I adjust in web.config.
Now I've spent about 10X longer trying to figure out how to register a new user than I have spent setting up the whole thing up in the first place.
Seems this aspnet membership system is complete overkill!!!! Anyone else had any such difficulties. Anyone got any ideas what I should look at so as to allow successfull registration of new users???
Any advice greatly appreciated
asnetdb csk membership debugging
Aug 28, 2007 07:31 PM|SalmonTraining|LINK
You need to get hold of the error message. In your web.config file, do you have a line that looks like this?
Do you get an error message now? If so, and you can't figure it out, post it back here.
How did you set yourself up as an admin user? Did you do this through deploying the local database where you'd set yourself up locally? Or did the registration work once, and then not again (i.e. has registration every worked on the live site)?
Aug 28, 2007 08:09 PM|oldcynic|LINK
Thanks for your response. I spent some time adjusting the <CustomError/> section of web.config and was puzzled why none of my changes seemed to make the blindest bit of difference until I finally discovered that Register.aspx.vb contains a hard-coded redirect
to ~/Error.aspx in Sub Page_Error(....)
I had previously changed MembershipProvider Password Type from Hashed to Encrypted, as I want users to be able to recover their passwords. It was only after remming out the hard coded redirect and turning CustomErrors="Off" that I was able to see some detail
about the error.
It transpires that Encrypted passwords require a <machineKey validationKey="" decryptionKey="" validation=""/> to be setup in <system.web> section of web.config. Having setup my <machineKey/> all now works fine. but thanks for your help
I set myself up as admin user, a few days ago, before I decided to I'd prefer Encrypted Password ove Hashed Passwords ~ Clearly without understanding the consequences CSK now seems to function OK locally and Remotely (...so far!)
Aug 28, 2007 09:42 PM|SalmonTraining|LINK
So you have the solution to your own problem. Thanks for posting the detailed reply and marking as answered - this will help someone else!