Developer forum

Forum » Development » Problem with UserManagement.User.Save

Problem with UserManagement.User.Save


Reply
Hi,

I'm using the UserManagement API to create and modify users from frontend. However, attempting to save apparently fails, and the Save method simply returns false without further notice. I was wondering if there's some way of telling what makes the Save method stop and return false?

BR.
Lars

Replies

 
Reply
Hi Lars,

I don't have a direct answer to your question but you could use Reflector to find out what happens and why it fails. The new Pro version has excellent decompilation options that enables you to debug third party DLLs: http://www.red-gate.com/products/reflector/index.htm

Worth checking out...

Imar
 
Reply
Hi Imar,

Did (something like;-)) that and found out, that the chance of that happening is when the user name supplied is empty or the id supplied doesn't match that found on the username. I'd missed running the User.Load method, so no ID was available while the user name was.

Thanks for the tip about the new Reflector. Sounds very interesting:)

BR.
Lars

 

You must be logged in to post in the forum