A required anti-forgery token was not supplied or was invalid.
When we try to login we get below error:
After this we can no longer login from any account and have to reset IIS. What can be the problem?
Server Error in '/' Application.
--------------------------------------------------------------------------------
A required anti-forgery token was not supplied or was invalid.
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.
Exception Details: System.Web.Mvc.HttpAntiForgeryException: A required anti-forgery token was not supplied or was invalid.
Source Error:
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.
Stack Trace:
[HttpAntiForgeryException (0x80004005): A required anti-forgery token was not supplied or was invalid.]
System.Web.Helpers.AntiForgeryWorker.Validate(HttpContextBase context, String salt) +557
System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) +156
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +691
System.Web.Mvc.Controller.ExecuteCore() +162
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +305
HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext requestContext) in c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:69
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +20
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Anton Gogolev on 30 Jul, 2013 12:06 PM
Hi,
What version of Windows are you hosting HgLab on?
2 Posted by cvs on 30 Jul, 2013 12:13 PM
We are hosting it on W2K8R2.
Met vriendelijke groet / Kind regards,
Optelec BV
Corand van Strien
Senior Software Engineer
Support Staff 3 Posted by Anton Gogolev on 01 Aug, 2013 12:41 PM
Corand,
Apologies for the delay.
Can we set up a TeamViewer session to sort things out? This is the only case of HgLab messing up the entire IIS server, so I'd really love to see it live.
4 Posted by cvs on 01 Aug, 2013 01:08 PM
Anton,
In the mean time we have determined that HgLab does not support email notifications from the server to the users when a push is done into the repositories. So we have decided not to use HgLab anymore and have installed HgWeb. This is working beautifully for us now.
So sorry, we have no working HgLab installation anymore.
Met vriendelijke groet / Kind regards,
Optelec BV
Corand van Strien
Senior Software Engineer
Support Staff 5 Posted by Anton Gogolev on 01 Aug, 2013 02:08 PM
Corand,
That's unfortunate - I was going to release a version with improved
pull/push performance and push/@-mention email notifications early next
week.
Nevetheless, good luck!
Anton Gogolev closed this discussion on 22 Aug, 2013 08:02 AM.