Required Anti-Forgery Form Field "_RequestVerificationToken" is not Present

While working In MVC 4 application with Entity Framework I got below Error.

server error

It’ simply means:

You have [ValidateAntiForgeryToken] attribute before your action. You also should add @Html.AntiForgeryToken() in your form.

Mean if your Action method like below:

validating forgery

Then your view should be like below:

model

Now Enjoy your programming.

Ebook Download
View all
Learn
View all