Some user account cause exception while login

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
1/17/2013 3:58:06 AM
Koe
Gravatar
Total Posts 29

Some user account cause exception while login

The error message is

ERROR mojoPortal.Web.Global - /ProfileView.aspx?userid=3
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
   at System.Guid..ctor(String g)
   at mojoPortal.Business.SiteUser.GetUser(IDataReader reader)
   at mojoPortal.Business.SiteUser.GetUser(Int32 userId)
   at mojoPortal.Business.SiteUser..ctor(SiteSettings settings, Int32 userId)
   at mojoPortal.Web.UI.Pages.ProfileView.LoadSettings()
   at mojoPortal.Web.UI.Pages.ProfileView.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

The user account has been used for several years and do not have problem,

suddenly it cause exception while login, also the admin cannot view / change the setting of the user.

There are no problem on the other user accounts.

What is the reason and solution(Except for create a new one) for the exception, thank you.

 

Koe

1/17/2013 6:23:35 AM
Gravatar
Total Posts 18439

Re: Some user account cause exception while login

I would look up the user row in mp_Users it seems to have a null where it should have a guid or at least empty guid,

ie 00000000-0000-0000-0000-000000000000 is empty guid

UserGuid field should have a real guid

but RegisterConfirmGuid, EmailChangeGuid, and PasswordResetGuid should all have empty guid

Hope that helps,

Joe

1/17/2013 9:36:13 PM
Koe
Gravatar
Total Posts 29

Re: Some user account cause exception while login

Thanks Joe,

I have read the mp_Users table, and find that there are the below differences of the user account causing problem (compare to other fine user account):

- EmailChangeGuid: NULL   (other:00000000-0000-0000-0000-000000000000)

- TimeZoneId: NULL  (other: Eastern Standard Time)

- NewEmail: NULL (other: empty)

- EditorPreference: NULL (other: empty)

- FirstName, LastName: NULL (other:empty)

- LastActivityDate: NULL (other: have a time)

 

I think the first one should be the cause of error? So the problem would be fixed if I change the data to 0000..... , is it?

 

Thank you.

1/18/2013 6:58:50 AM
Gravatar
Total Posts 18439

Re: Some user account cause exception while login

Yes, EmailChangeGuid should have 00000000-0000-0000-0000-000000000000, if it is null put that in the field

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.