Dateiupload durch maxRequestLength ausgebremstDas Problem tritt dann auf, wenn die upzuloadenden Dateien 4MB Größe überschreiten. Denn dieses Limit ist in der machine.config für die Länge von Requests eingetragen, und zwar im httpRuntime Tag (Ausschnitt aus der machine.config): <!-- httpRuntime Attributes: executionTimeout="[seconds]" - time in seconds before request is automatically timed out maxRequestLength="[KBytes]" - KBytes size of maximum request length to accept useFullyQualifiedRedirectUrl="[true|false]" - Fully qualifiy the URL for client redirects minFreeThreads="[count]" - minimum number of free thread to allow execution of new requests minLocalRequestFreeThreads="[count]" - minimum number of free thread to allow execution of new local requests appRequestQueueLimit="[count]" - maximum number of requests queued for the application enableKernelOutputCache="[true|false]" - enable the http.sys cache on IIS6 and higher - default is true enableVersionHeader="[true|false]" - outputs X-AspNet-Version header with each request --> Der Standardeintrag ist wie folgt:
<httpRuntime executionTimeout="90" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true"/>
Wie man sieht - 4MB. Geändert werden kann dieses Limit jederzeit in einer web.config, man muß nur das <httpRuntime> Element eintragen. |
|