System.Web.Mvc.HttpAntiForgeryException (0x80004005): The provided anti-forgery token was meant for user "", but the current user is "[email protected]".
at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken)
at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext, String cookieToken, String formToken)
at System.Web.Helpers.AntiForgery.Validate(String cookieToken, String formToken)
at Umbraco.Web.WebApi.Filters.AngularAntiForgeryHelper.ValidateTokens(String cookieToken, String headerToken)
-
2017-09-29 13:03:06,282 [P11964/D18/T51] INFO Umbraco.Web.Editors.AuthenticationController - User 2 is currently locked out, unlocking and resetting AccessFailedCount
I know this is not ideal, but without knowing exactly how you locked every account in Umbraco, you could log into the database (not sure if you can use Visual Studio to do this as it is a SQLCE database) and manually reset the user accounts that have been locked (i.e. in the umbraco user table).
All users suddenly locked out!
Hi
Suddenly all my users are locked out. Including Admin! Umbraco version 7.71. DB: .sdf
How and why and what to do!!?
Thx!
Hi Jon
Did you do something with the website?
Maybe some changes in IIS settings?
Thanks,
Alex
Hi Alex
I've been adding some users and testing them. And change the notification-mail + the stmp-settings – thats all.
Thx!
Is your database locked?
Or, did you have a password expiry date set on the account you use to connect to the database?
Hi MuirisOG
Its a new website – and the site runs fine. So I guess the db isn't locked...I don't know about the expiry date for the db connection?!?
Hi Jon, If the site is running fine, then it probably isn't the connection to the database.
I've done that in the past... the password has expired and the site is unavailable.
Are you getting any errors in the log file in
app_data\logs\
?Are you using SQLCE?
Yes! SQLCE.
I not sure which is errors and which is not :-) But I found these unnormal:
–
-
Are you trying to login from the same machine? can you clear cookies?
Jon
have you had a look at this post?
I realise you are not getting a YSOD, but it may have something useful for you.
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/71042-umbraco-cannot-start-a-connection-string-is-configured-but-the-umbraco-cannot-connect-to-the-database
I've cleared cookies and tried to find a possible solution link – this must be a big bug?!
I know this is not ideal, but without knowing exactly how you locked every account in Umbraco, you could log into the database (not sure if you can use Visual Studio to do this as it is a SQLCE database) and manually reset the user accounts that have been locked (i.e. in the umbraco user table).
is working on a reply...