Ajax error return null value [closed]

1

I have a function in ajax:

             $.ajax({
                    type: "POST",
                    url: "@Url.Action("FiltraLevatamento", "Consulta")",
                    data: JSON.stringify(jsn),
                    contentType: "application/json",
                    dataType: "json",
                    async: true,
                    success: function (data) {

                            result(data); 


                        $("#modalboxProcessa").modal("hide");

                    },
                    error: function (XMLHttpRequest, txtStatus, errorThrown) {
                        $("#modalboxProcessa").modal("hide");
                        $("#modalboxErro2").modal("show");

                    }
                });

In my local machine it works correctly, only when I post to the ajax error server.

Does anyone know what the problem is? I have pretty much the same ajax only that returns me other different data, and it is working normally.

    
asked by anonymous 19.08.2015 / 19:09

0 answers