Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 在WSE 2.0 Web服务上增加Dime maxRequestLength时遇到问题_Asp.net_Vb.net_Web Services_Wse - Fatal编程技术网

Asp.net 在WSE 2.0 Web服务上增加Dime maxRequestLength时遇到问题

Asp.net 在WSE 2.0 Web服务上增加Dime maxRequestLength时遇到问题,asp.net,vb.net,web-services,wse,Asp.net,Vb.net,Web Services,Wse,我想尽了一切办法 我在dotNet Framework 3.5 ASP 1.1上的IIS6 WSE2.0上运行Web服务 我更改了服务和客户端web.config,并添加了以下两项: <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> <section name="microsoft.w

我想尽了一切办法

我在dotNet Framework 3.5 ASP 1.1上的IIS6 WSE2.0上运行Web服务

我更改了服务和客户端web.config,并添加了以下两项:

     <configSections>
<section  name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
  <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </configSections>

 <microsoft.web.services2> 
     <messaging>
       <maxRequestLength>8000</maxRequestLength>
     </messaging>
 </microsoft.web.services2>

8000
然后

   <httpRuntime maxRequestLength="8000" executionTimeout="1200" />

在system.web部分中


但任何超过4MB的操作仍然会失败,原因是:运行配置文件中指定的扩展时出现异常。-->超出了最大请求长度

你知道WSE2.0已经过时,而且极不受支持吗?是的,我也在一家不喜欢变化的公司工作。我继承了这个,他们想暂时保留它。我读到的所有内容都表明,它应该能够清除超过4MB的数据。事实上,它已经存在了一段时间,我希望有人以前遇到过。提醒他们它不是“存在了一段时间”——它已经过时了。它比Windows XP更过时。如果我没记错的话,你必须更改maxRequestLength、maxArrayLength、maxStringContentLength、maxBufferSize和maxReceivedMessageSize,否则你会遇到一个又一个问题。你说得对。我找到了答案,并通过向machine config和web config中添加如上所述的httpRuntime元素,以及“在IIS6服务器上启用直接元数据库编辑,然后转到相应的xml编辑ASPBuffering和附件长度”来实现。