Author: JohnLocke | Posted on: 11/5/2010 2:37:25 PM | Views : 281

My application uses a custom membership provider for authentication only.  I started a user creation piece that handles creating new users in my db table -- however the users aren't being added.  I used the exact same method to add other non-user table records and those all work fine, but no luck trying to add a user.  See end of post for debug Immediate log

Here's relevent code:
[Repository]

public void AddUser(User user){
db.Users.InsertOnSubmit(user);
}[Controller]
[AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(User user){ if (ModelState.IsValid){ try{ user.UserName = Request.Form["UserName"]; userRep.AddUser(user); userRep.Save(); return RedirectToAction("Users", "Admin"); } catch{ return Redirec ...

Go to the complete details ...