web.config中添加如下节点

<system.webServer>

    <security>
      <requestFiltering >
        <requestLimits maxAllowedContentLength="1073741824" ></requestLimits>
      </requestFiltering>
    </security>

</system.webServer>.


和设置

<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength="999999999" executionTimeout="120" maxQueryStringLength="2097151" />
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>
</system.web>

posted on 2019-09-03 21:02  asp恒心  阅读(545)  评论(0编辑  收藏  举报