I just stumbled across a nasty problem. We moved our Intranet from Windows Server 2003 to Windows Web Server. I wrote a custom upload application on our Intranet, so newsletter could be uploaded. Well, with certain documents, the upload stopped working.

I struggled to find the problem, but knew it occured in this line of code:
“Request.BinaryRead”

After much searching and cursing I found out that with the ASP upload component, you have to manually increase the allowed upload size in IIS. So I went to IIS 7 Manager, and found the field. I updated the “Maximum Entity Requesting Body Limit” to some huge size (in bytes), and tried the upload again.

Well, it worked after that. What a mission! :P

Advertisement