如果我有一些数据,则注册完成。 但是如果我有多个数据,则注册没有,并且浏览器中显示错误“无法加载资源:服务器响应状态为414(请求URI太长)”
Web.Config
<security>
<requestFiltering>
<fileExtensions allowUnlisted="true">
<remove fileExtension="."/>
<add fileExtension="." allowed="true"/>
</fileExtensions>
<requestLimits maxUrl="65536" maxAllowedContentLength="4294967295" maxQueryString="2097151">
<headerLimits>
<add header="Content-type" sizeLimit="10000" />
</headerLimits>
</requestLimits>
</requestFiltering>
</security>
<httpRuntime maxRequestLength="2147483647"
requestValidationMode="4.0"
executionTimeout="1200"
targetFramework="4.6.1"
maxQueryStringLength="2097151"
maxUrlLength="65536"
enable="true"
/>
JavaScript
$.ajax({
async: true,
type: "POST",
url: _urlprolineserv + "/Update_VisiteByKeyJsonp",
data: { _Visite: _objectjson, _visite_presence: _lignespresencesvisite, _visite_responsabilities: _lignesresponsabilitesvisite, _visite_details: _lignesdetailsvisite, _KeySession: Tb_KeySessionClient.GetValue() },
cache: false,
contentType: "application/javascript",
dataType: "jsonp",
processdata: false,
success: function (result) {
WebService
[OperationContract]
[WebGet(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
string Update_VisiteByKeyJsonp(string _Visite, string _visite_presence, string _visite_responsabilities, string _visite_details, string _KeySession);