我想从我的asmx服务中检索大量项目。一切正常,但当我试图检索超过2000项时,我得到500错误。我想我应该修复一些配置设置。请帮忙。我的配置
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<system.web>
<compilation batch="false" batchTimeout="6000" maxBatchSize="100000" maxBatchGeneratedFileSize="100000" />
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=..." />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpHandlers>
<customErrors mode="On" />
<globalization fileEncoding="utf-8" />
<httpRuntime executionTimeout="36000" maxRequestLength="20480" />
<webServices>
<protocols>
<add name="HttpGet" />
<add name="HttpPost" />
<remove name="HttpPostLocalhost" />
<add name="Documentation" />
</protocols>
</webServices>
</system.web>
</configuration>
答案 0 :(得分:2)
这是一个常见问题,当您需要向用户返回大量数据时,这里有几个注意事项:
因此