我将maxAllowedContentLength更改为
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="5024000000" />
</requestFiltering>
</security>
Run Code Online (Sandbox Code Playgroud)
在我的web.config中,但在IIS7上运行时出现此错误:
'maxAllowedContentLength'属性无效.不是有效的无符号整数

但是当我在VS服务器中运行时,它正常运行而没有任何错误.
如何配置我的网站允许上传500MB大小的文件,在IIS7上没有这个问题?