To resolve this issue you need to configure the settings of your server. Please do the following steps:
Go to c:\windows\system32\inetsrv\config\applicationHost.config and change Code:
<section name="requestFiltering" overrideModeDefault="Deny" />
to:
<section name="requestFiltering" overrideModeDefault="Allow" />
then Add to your application's web.config the following code:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength ="2147482624" /><!--this value in bytes~2GB-->
</requestFiltering>
</security>
<system.webServer>
Here in web.config find the <system.web> section and the httpRuntime key.
Modify the maxRequestLength and executionTimeout attributes of this key.
For example:
<system.web>
<!-- Uploading file size and timeout restriction -->
<httpRuntime executionTimeout="540000" maxRequestLength="2097151"/> <!-- ~2GB -->
</system.web>
Note:
- The maxRequestLength value should be specified in kilobytes. The default value is 4096 KB (the same as 4 MB).
- The executionTimeout value should be specified in second