Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

115
Vistas
Delay between ajax call and Controller method receiving

I have a page in which I execute an ajax call to an ActionResult passing a JSON as data.

Ajax Call:

$.ajax({
        contentType: "application/json; charset=utf-8",
        traditional: true,
        cache: false,
        url: "/ContainerPacking/_GenerateShipmentProposal",
        type: "post",
        data: JSON.stringify({
            origin,
            containers,
            boxes
        }),
        success: function (result) {
            // execute something
        }
    });

Asp.NET MVC ActionResult:

public ActionResult _GenerateShipmentProposal(int origin, List<int[]> containers, List<Box> boxes, float GapBetweenBoxes = 0.0001f)
{
    //execute something;
}

This was working fine, but recently I started noticing a delay (5 ~ 10s) between the ajax call and the ActionResult being triggered.

This happens both in debug mode and in the published page.

Do you guys have any idea what could be happening? Or how to debug/find out what could be happening?

PS.: using .NET Framework 4.7.1 and JQuery 3.5.1

Thanks!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda