我正在使用 3.5 asp.net webapplication 将文件作为字节数组传输到 axmx 1.1 webservice 但它在调用该方法时出现以下错误
“底层连接已关闭:发送时发生意外错误”
bytearray 长度是 120788413 但是当我用较小的文件调用相同的方法时,即字节数组长度为 3128994 它工作得很好。
1.1 asmx webservice 中有没有办法增加消息接收请求的长度?
1.1 webservice 不能升级所以不能使用 WCF 必须使用相同的服务,在 webservice 我添加了这个
<httpRuntime executionTimeout="30720" maxRequestLength="1024000"/>
在 system.web 元素中
也添加了这个部分
<microsoft.web.services2>
<diagnostics>
<trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo"/>
</diagnostics>
<messaging> <maxRequestLength>1024000</maxRequestLength> </messaging><!-- 1GB -->
</microsoft.web.services2>
但这似乎不起作用,在我的应用程序中,我也在使用具有相同值的 httpruntime
请指导我如何增加网络服务中接收消息的长度?