2

Hi I have a functionality in which we upload a large excel file. The code is working fine in local but after deploying the code on IIS when I try to upload the same file I get error :

403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.

If I upload small file its working perfectly fine. But when uploading large file it is throwing error. Any idea what can be the reason or any work around for the same.

Community
  • 1
  • 1
Anirudh Agarwal
  • 655
  • 2
  • 7
  • 29

1 Answers1

0

Try this in your web.config file.

 <configuration>
      <system.web>
        <httpRuntime maxRequestLength="####" />
      </system.web>
 </configuration>

"####" is in KB. default is 4000+ which is equal to 4mb.

Rehan Shah
  • 1,505
  • 12
  • 28