How upload Large file in Asp.net programme
To make the above modifications to your application for large file uploads you need to:
1.Open the Solution Explorer, navigate to the application web.config file and open it.
2.Under the <configuration> element locate the <system.web> element. Add it if it does not exist.
3.Under the <system.web> element locate the <httpRuntime> element. Add it if it does not exist.
4.In the <httpRuntime> element locate the maxRequestLength and executionTimeout attributes. If they do not exist, add them and set their values:
Webconfig=>
<configuration>
...
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="3600" />
...
</system.web>
</configuration>
For IIS7=><system.webserver>
...
<security >
<requestFiltering>
<requestLimits maxAllowedContentLength="1024000000" />
</requestFiltering>
</security>
</system.webserver>•Open the file C:\Windows\System32\inetsrv\config\applicationHost.config and find the line:
<section name="requestFiltering" overrideModeDefault="Deny" />
•Set the overrideModeDefault property to Allow. So now the line should look like:
<section name="requestFiltering" overrideModeDefault="Allow" />
No comments:
Post a Comment