Ajax错误值返回null

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 works properly only when I publish in the server error in ajax .

Can anyone tell me what is the problem ? I have pretty much the same ajax only returning me other than data, and is running fine .