I created a ASP.net website and is already uploaded to IIS. I can access it from an outside network.
I was testing the upload function. It was uploading files, but when I tried to upload a file of 4.09MB it took 40 seconds for upload. However, the file did not upload and give an 'Server Error'.
I tried to increase the connection timeout in the connection string to 600. Also, I see that the file is uploading in a corner of the website (Google Chrome browser) and when it said 99% then the error occur.
Using my local connection do not give any error.
Try extending the maxRequestLength in the web.config:
<httpRuntime maxRequestLength="12288" />
The default maximum is 4MB so needs extending for files more than that.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.