我把 maxAllowedContentLength 改成了
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="5024000000" />
</requestFiltering>
</security>
在我的web.config文件中,但在运行IIS7时出现以下错误:
'maxAllowedContentLength'属性无效。不是有效的无符号整数。
但是,在VS服务器上运行时,它可以正常运行而没有任何错误。
如何配置我的网站以允许上传大小为500MB的文件,而不会在IIS7上出现此问题?