IIS have some restriction will able to process only 30000000
bytes(28 MB) of data by default. What will happen if we need to process /
handle 2 GB?
IIS will not reply or do any log in windows
event or IIS. Use the following steps to solve this kind of problem.
Steps:
1.
Go to IIS(Internet Information Service)
1.
In Http Features section, you will find “Request
Filtering”.
2.
Click on the “Request Filtering”, you will get
something as follows.
In Action pane, Click on “Edit Feature settings”. You will get the following screen.
1.
In Request limits, You can see the Maximum
allowed content length 30000000 bytes(default value).
2.
Change Maximum allowed content length to 2147483648
bytes (2 GB).
3.
Click “Ok”
Now you can able to process up to 2 GB of data using IIS.
Web.config /
App.config change:
App.config / web.config should be tuned at client side and
server side as follows.
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="30000000" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
Reference:
http://social.msdn.microsoft.com/Forums/en/wcf/thread/e6e21132-ad3f-4135-8ab9-77923b099907Thanks,
Gowdhaman