A required anti-forgery token was not supplied or was invalid.

cvs's Avatar

cvs

30 Jul, 2013 11:41 AM

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

  1. Support Staff 1 Posted by Anton Gogolev on 30 Jul, 2013 12:06 PM

    Anton Gogolev's Avatar

    Hi,

    What version of Windows are you hosting HgLab on?

  2. 2 Posted by cvs on 30 Jul, 2013 12:13 PM

    cvs's Avatar

    We are hosting it on W2K8R2.

    Met vriendelijke groet / Kind regards,

    Optelec BV
    Corand van Strien
    Senior Software Engineer

  3. Support Staff 3 Posted by Anton Gogolev on 01 Aug, 2013 12:41 PM

    Anton Gogolev's Avatar

    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. 4 Posted by cvs on 01 Aug, 2013 01:08 PM

    cvs's Avatar

    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

  5. Support Staff 5 Posted by Anton Gogolev on 01 Aug, 2013 02:08 PM

    Anton Gogolev's Avatar

    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!

  6. Anton Gogolev closed this discussion on 22 Aug, 2013 08:02 AM.

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

Recent Discussions

18 Jan, 2025 05:02 PM
13 Jan, 2025 10:42 AM
29 Nov, 2024 10:00 AM
12 Jan, 2023 12:25 PM
10 Jan, 2023 04:49 PM