在VS相关的编译环境中正常,部署到IIS后部分功能无法使用的问题,很大的问题在于web.config的配置
两个关键点位置:
<system.web>
<httpRuntime requestValidationMode="2.0" maxRequestLength="2147483647" maxQueryStringLength="2097151" maxUrlLength="2097151" executionTimeout="36000" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="512000000" maxQueryString="10240" />
</requestFiltering>
</security>
</system.webServer>
常见问题:
附件上传大小受限制
采用ajax传递后台参数长度过长。