C# 无法加载资源:net::错误\u连接\u REST
我需要使用Ajax web调用从数据库获取大数据。 多达20000条记录表明ajax调用工作正常,但当记录数超过20k时,它会显示错误 “加载资源失败:网络::错误\u连接\u REST” 在控制台中 DL方法中没有错误 下面是ajax调用代码:C# 无法加载资源:net::错误\u连接\u REST,c#,jquery,asp.net,web-services,C#,Jquery,Asp.net,Web Services,我需要使用Ajax web调用从数据库获取大数据。 多达20000条记录表明ajax调用工作正常,但当记录数超过20k时,它会显示错误 “加载资源失败:网络::错误\u连接\u REST” 在控制台中 DL方法中没有错误 下面是ajax调用代码: $.ajax({ type: "POST", url: serviceUrl, async: false, data: JSON.stringify(Dat
$.ajax({
type: "POST",
url: serviceUrl,
async: false,
data: JSON.stringify(Data);,
contentType: "application/json", // content type sent to server
dataType: "json", //Expected data format from server
processdata: true,
success: function (data) {//On Successfull service call
bSuccess = true;
//Success code here
},
error: function (jqXHR, textStatus, errorThrown) {
//Error code here
}
});
请帮我清除错误。每条记录有多大
我的第一个猜测是请求的大小。您使用的是哪种服务器?如果它托管在IIS中,您应该在web.config中检查maxAllowedContentLength。Hi Rikard,每条记录包含8列。是的,我们托管在IIS中,我在web.configfile中添加了maxAllowedContentLength=“1073741824”只是为了澄清,是发布对象数据太大还是来自服务器的响应?