System.Web.HttpException: 请求已超时 的解决办法

修改Web.Config文件:  

<?xml   version="1.0" >   
<configuration>   
      <system.web>   
      <httpRuntime   maxRequestLength="512000"   useFullyQualifiedRedirectUrl="true"   executionTimeout="300"/>     
      </system.web>   
</configuration>  

 

我这里时间设置的是300,就是300秒。五分钟,这样就可以了,你也可以根据你的时间来设置
maxRequestLength这个是文件最大多少k ,也根据你的需要来设置。

posted @ 2012-07-26 11:02  WebApi  阅读(885)  评论(0编辑  收藏  举报
CopyRight © 博客园 WebAPI