Error: The required anti-forgery form field __RequestVerificationToken is not present in ASP.Net MVC

Last Reply 8 days ago By AnandM

Posted 11 days ago

I'm getting an error while trying to load a modal window loading a different page. I was following this tutorial  https://www.aspsnippets.com/Articles/Implement-and-display-jQuery-Modal-Popup-Dialog-Window-in-ASPNet-MVC-Razor.aspx

However, following the tutorial the error I'm getting is this         

The required anti-forgery form field "__RequestVerificationToken" is not present.

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: The required anti-forgery form field "__RequestVerificationToken" is not present. Source Error:

 <table width="100%" bgcolor="#ffffcc">
        <tr>
            <td>
                <code>
            </td>
        </tr>

What's the cause of this?

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html