2013-02-21 88 views
0

我已经使用Webmatrix 2构建了一个视频网站,但是当我尝试上传两个视频.webm和.mp4的分钟时(在这种情况下,两个文件的总和大约为34mb )我收到此错误... “请求筛选模块配置为拒绝超出请求内容长度的请求。”ASP.NET中的最大文件上传大小错误Razor网站

该网站在我的机器上本地运行IIS 8的实例。我尝试添加Maxrequest和executeTimeout,但没有任何运气。

 web.config <httpRuntime maxRequestLength="2000000" executionTimeout="600" /> 

任何帮助,将不胜感激

+0

2000000字节小于34MB – leppie 2013-02-21 08:33:51

+0

什么是你可以添加最高将与我的34MB应对? – NickP 2013-02-21 08:40:13

+0

鉴于千字节是1024字节,兆字节是1024千字节,计算很简单。 – leppie 2013-02-21 08:56:48

回答

1

任何有兴趣我应用了整理出来以下。

Read this article that explains it well:

<system.webServer> 
    <security> 
     <requestFiltering> 
      <requestLimits maxAllowedContentLength="524288000"/> 
     </requestFiltering> 
    </security> 
</system.webServer>