Posted on: 2/12/2015 1:25:22 AM | Views : 544

Elmah logs show the exception "patient was null, BUT TRIED SIGNING IN NOW 0".
So if my users are signing in successfully, which they must be because they are hitting the profile page, then why do some of them hit this error. Why is the user null?
I just can't figure it out, why it effects some but not all. When I republish my site, it works for a few minutes, sometimes a few hours then users randomly can't login again.

protected void UserLogin_Click(object sender, EventArgs e) { if (IsValid) { var manager = new IdentityModels.UserManager(); IdentityModels.User user = manager.Find(Username.Text, Password.Text); if (user != null) { if (isUserActive(user.PatientId)=="isNotActive") { lblError.Text = "you ...

Go to the complete details ...