C#のアップロードファイルサイズ制限

1.WebConfig:

<のsystem.web>
    <認証モード= "なし" />
    <コンパイル、デバッグ= "true"をtargetFramework = "4.5.2" />
    <のhttpRuntime targetFramework = "4.5.2" appRequestQueueLimit = "100" executionTimeout = "80" maxRequestLength = "1048576000" useFullyQualifiedRedirectUrl = "偽" />
    <のHttpModules>
      <名前= "ApplicationInsightsWebTracking"タイプを追加= "Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule、Microsoft.AI.Web" />
    </のHttpModules>
  </system.web>
  <system.webServer>

<System.webServer>を追加しました:

<セキュリティ>
      <requestFiltering>
        <requestLimits maxAllowedContentLength = "1048576000" />
      </ requestFiltering>
    </セキュリティ>

 

2.アプリケーションプール:
[適用]をクリックし、最大要求エンティティボディ制限を変更、プロパティの上限を開いて、ASPのウェブサイトをクリックして、

おすすめ

転載: www.cnblogs.com/tfeblog/p/11606968.html