JMeter - System.Web.Mvc.HttpAntiForgeryException (0x80004005): Validation of the provided anti-forgery token failed

0

Using Blazemeter to record to login to a .Net MVC application. After recording and saving the JMX file, open the JMX file using JMeter. While running, getting the following error:

System.Web.Mvc.HttpAntiForgeryException (0x80004005): Validation of the provided anti-forgery token failed. The cookie "__RequestVerificationToken" and the form field "__RequestVerificationToken" were swapped. at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken) at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext) at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__19(AsyncCallback asyncCallback, Object asyncState)

Using the Regular Expression Extractor to get the __RequestVerificationToken, store in a variable and use it for logging in.

Getting stuck with the it. Any help is appreciated.

jmeter
asked on Super User Jul 8, 2019 by Ganga Sahu • edited Jul 9, 2019 by gamer0

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0