The required anti-forgery cookie "__Requestverificationtoken" is not present

Asked

Viewed 63 times

0

I have a project that is on my server iis and is working on most machines, but in some of them the message is received:

The required anti-forgery cookie "__RequestVerificationToken" is not present. 

I have in my controller:

 [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Salvar(Ramal ramal, HttpPostedFileBase upload, int CallSource)
        {

            ViewBag.CallSource = CallSource;

            if (ModelState.IsValid)
            {
                string AuxExtensao;
                byte[] auxFoto;

and in my view:

@model Ramais.Models.Ramal

@using (Html.BeginForm("Salvar", "Ramais", new { CallSource = (int)ViewBag.CallSource }, FormMethod.Post,
    new { enctype = "multipart/form-data" }))
{

    @Html.AntiForgeryToken()

I have 50 machines ok and two displaying this message when the user saves the information. If the same goes on another machine works...

Someone’s been through this?

  • 1

    you have already checked the browser version, if it is updated? in which browsers and from which browser version your system works?

  • I’ve been there and that’s when I double-clicked the send button.

  • all internet explorer machines 11

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.