2016-12-15 8 views
0

申し訳ありませんStackOverflow、これはすでに尋ねられていると私はほとんどすべてを試したと知っていると私はほとんどすべてを試して、HttpException(0x80004005):最大リクエストの長さを超えました

最大リクエスト数を超えて最大8枚の写真がアップロードされるように制限しています。

私はから参照

Maximum value of maxRequestLength?

Maximum request length exceeded

と、これは私の設定ファイルである:

<location path="MyHome.aspx"> 
<system.web> 
    <httpRuntime maxRequestLength="1048576" executionTimeout="3600" /> 
</system.web> 
</location> 
<system.webServer> 
    <defaultDocument> 
     <files> 
      <add value="Home.aspx" /> 
     </files> 
    </defaultDocument> 
    </system.webServer> 
<system.webServer> 
<security> 
    <requestFiltering> 
    <requestLimits maxAllowedContentLength="1073741824" /> 
    </requestFiltering> 
</security> 
</system.webServer> 

誰かがこの上で私を助けることができる、私は間違って何をやっています私のファイルはアップロードされておらず、例外をスローしていますか?

ありがとう、私の悪い英語を申し訳ありません。

答えて

1

あなたのSystem.Web要素はLocation要素の下にあるようですが、Configuration要素の下にあることを確認してください。

このような何か:

<configuration> 
<system.web> 
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" /> 
</system.web> 
</configuration> 
関連する問題