间歇413:请求实体太大误差ASMX Web服务通过HTTPS [英] Intermittent 413: Request Entity Too Large error with ASMX web service over https

查看:298
本文介绍了间歇413:请求实体太大误差ASMX Web服务通过HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有它接受几个参数,其中之一是一个序列JPG格式的ASMX web服务。这些文件一般〜100KB大小。

我可以打电话给我的服务,并成功地将文件发送了一会儿,然后开始返回413错误。我已经嗅到了线的请求,并请求的大小几乎是一致的。

(事实上,失败的调用是由500个字节比成功调用小)

如果我再发一个小得多的文件(比如50KB)就开始工作了,然后我就可以发送大文件了一会儿。

我在我的web.config文件:

 <安全>
  <的requestFiltering>
    < requestLimits maxAllowedContentLength =2147483647/>
  < /的requestFiltering>
< /安全>
 

这是通过HTTPS在IIS 7.5在Windows Server 2008 R2 SP1。任何帮助将是AP preciated。谢谢!

- UPDATE-- 这似乎是解决方案:我下面将其粘贴在希望别人会发现它很有用

  C:\ WINDOWS \ SYSTEM32 \ INETSRV>的appcmd.exe设置配置-section:system.webServer / serverRuntime中/应将UploadReadAheadSize:1048576/承诺:APPHOST
 

解决方案

有趣的问题,我都没有这个问题,但探听周围很多,似乎大多数人都找一些救济通过调整在应将UploadReadAheadSize ,这里有一个线程在 iis.net 在那里他们可以把它清除掉IIS7上。 5通过设置的applicationHost.config该值,祝你好运...

I have an ASMX web service which accepts a few parameters, one of which is a serialized jpg. These files are generally ~100KB in size.

I am able to call my service and send the files successfully for a while, then it starts returning 413 errors. I've sniffed the wire for the requests, and the request sizes are virtually identical (and in fact, the failing call is smaller by 500 bytes than the successful call).

If I then send a much smaller file (say 50KB) it starts working again, and I can then send larger files for a while.

I have this in my web.config file:

<security>
  <requestFiltering>
    <requestLimits maxAllowedContentLength="2147483647" />
  </requestFiltering>
</security>

This is over https on IIS 7.5 in Windows Server 2008 R2 SP1. Any help would be appreciated. Thanks!

--UPDATE-- This appears to be the solution: I'm pasting it below in the hopes that someone else will find it useful.

C:\Windows\System32\inetsrv>appcmd.exe set config -section:system.webServer/serverRuntime /uploadReadAheadSize:"1048576"  /commit:apphost

解决方案

Interesting problem, I haven't had this issue but snooped around alot, seems like most people find some relief by adjusting the UploadReadAheadSize , here's a thread on iis.net where they were able to clear it up on IIS7.5 by setting that value in applicationHost.config, good luck...

这篇关于间歇413:请求实体太大误差ASMX Web服务通过HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆