When a customer tries to login he gets following error:
usernoconsole
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Also, your user account might not have been set-up correctly, the following SQL is executed for your user, maybe the "usernoconsole" column doesn't have the correct value?
public static int getUserId(string lname, string passw) { return getUserId("select id from umbracoUser where userDisabled = 0 and userNoConsole = 0 and userLogin = @login and userPassword = @pw", SqlHelper.CreateParameter("@login", lname), SqlHelper.CreateParameter("@pw", passw)); }
Usernoconsole error when logging in
When a customer tries to login he gets following error:
Its a 4.0.2.1 installation with MS SQL
This older post might help..?
Also, your user account might not have been set-up correctly, the following SQL is executed for your user, maybe the "usernoconsole" column doesn't have the correct value?
public static int getUserId(string lname, string passw) {
return getUserId("select id from umbracoUser where userDisabled = 0 and userNoConsole = 0 and userLogin = @login and userPassword = @pw",
SqlHelper.CreateParameter("@login", lname),
SqlHelper.CreateParameter("@pw", passw));
}
We restarted the IIS and then it started to work again. The table umbracoUser table looked fine.
I couldnt find anything related in the old post.
I little bit troublesome if it should happen again!
Following steps worked for me In my case it was Umbraco 7.4.2
1) setting "userNoConsole" to 0 (executing following sql query Umbraco DB)
update [umbracoUser] set userNoConsole = 0 where UserLogin='Admin' -- respective user
2) restarting website from IIS OR can also touch web.conf to do so.
is working on a reply...