Asp.net 使用大querystring值的Ajax调用失败
我有一个使用asp.net scriptmanager的Ajax调用。它在幕后获取数据并将其作为查询字符串添加到url中,然后进行get调用。但当数据非常大时,它就会失败 我想如果我能增加querystring的maxwidth,它将被解决。如何在asp.net中更改maxquerystring大小 此外,该错误不是由于浏览器限制造成的,因为它是由服务器抛出的 服务是为ajax公开的WCF服务 错误是Asp.net 使用大querystring值的Ajax调用失败,asp.net,wcf,iis-7,Asp.net,Wcf,Iis 7,我有一个使用asp.net scriptmanager的Ajax调用。它在幕后获取数据并将其作为查询字符串添加到url中,然后进行get调用。但当数据非常大时,它就会失败 我想如果我能增加querystring的maxwidth,它将被解决。如何在asp.net中更改maxquerystring大小 此外,该错误不是由于浏览器限制造成的,因为它是由服务器抛出的 服务是为ajax公开的WCF服务 错误是 Exception Type: System.ServiceModel.FaultEx
Exception Type: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]
Exception: Buffer cannot be null.
Parameter name: buffer
Source: DefaultPage
Stack Trace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
所以在这里它形成了url
大意味着它大约有1000个字符长
在哪里可以设置允许的最大url大小或其他内容
我知道这类数据需要使用post而不是get提交,但scriptmanager就是这样工作的,因此希望通过扩展此限制来获得解决方案。查询字符串的最大长度不能通过编程设置,它由请求中涉及的web服务器和浏览器决定 查看Wikipedia条目的兼容性问题部分,了解详细信息和其他资源的链接
查询字符串的最大长度不能通过编程设置,它由请求中涉及的web服务器和浏览器决定 查看Wikipedia条目的兼容性问题部分,了解详细信息和其他资源的链接
你可以考虑使用.POST
你可以考虑使用$.POST
谢谢,我已经先走了,并用感谢邮件,我已经走了,用了POST