Friday, October 11, 2013

How to resolve file uploading issue in asp.net and 404 file not found when upoloading file.

For uploading large size through asp.net below tag need to be added in web.config file.

Under "system.web"

"httpRuntime maxRequestLength="1048576" "

After adding this tag you may get below error.

404 file not found or moved from this location,Page not found

Add below tag in web.config under  "system.webServer"

 "security / requestFiltering  "requestLimits maxAllowedContentLength="104857600""
/requestFiltering/security

No comments:

Post a Comment