One thing I noticed is that this error could be caused by having multiple @Html.AntiForgeryToken()
pieces of code on the page. I had 2 on my page and once I removed the second one, this error went away.
More Related Contents:
- jQuery Ajax calls and the Html.AntiForgeryToken()
- How can I supply an AntiForgeryToken when posting JSON data using $.ajax?
- How to lock down paths in ASP.NET MVC?
- Web API and ValidateAntiForgeryToken
- Troubleshooting anti-forgery token problems
- What does the Web.Config file do in the views folder of a MVC project
- upgrading from MVC4 to MVC5
- Polymorphic model binding
- TempData keep() vs peek()
- Real example of TryUpdateModel, ASP .NET MVC 3
- allowDefinition=’MachineToApplication’ error when publishing from VS2010 (but only after a previous build)
- Razor-based view doesn’t see referenced assemblies
- Why is my CSS bundling not working with a bin deployed MVC4 app?
- ASP.NET: This method cannot be called during the application’s pre-start initialization stage
- Could not load file or assembly HRESULT: 0x80131515 (When adding controller to MVC project that has assembly references on network drive)
- MVC Routing Parameter Precedence
- String URL to RouteValueDictionary
- How can I combine two fields in a SelectList text description?
- In C#, how can I know the file type from a byte[]?
- How to display an image from a path in asp.net MVC 4 and Razor view?
- MVC 5 Seed Users and Roles
- Redirecting to specified controller and action in asp.net mvc action filter
- MVC post a list of complex objects
- MVC4 enum and radio button list
- How can I use Html.Action?
- ASP.NET Web API, unexpected end of MIME multi-part stream when uploading from Flex FileReference
- How to integrate IoC Membership provider with ASP.NET MVC
- Caching ChildActions using cache profiles won’t work?
- Asp.net core MVC post parameter always null
- Send asp.net mvc action result inside email