I was trying to upload/post a large file and received a flat and boring 404 error from IIS 7. Microsoft Site advices to update the applicationhost.config file in %windir%\system32\inetsrv\config\applicationhost.config and increase the BYTE value of maxAllowedContentLength in the <requestLimits>, so the IIS request filter may allow large post data to come through.
But my applicationhost.config file didn’t have <requestLimits> nod and except prisoners with a long jail sentence no one else in their right mind would learn configuration values by heart. But the command
I restart the IIS. Upload the file again. Well. Nothing Changed. @#$! I don’t know why. If you know, please let me know. That would be very kind. If you don’t, that’s ok. I’m not dying to know anyway.
The other option was update the web.config file, in the root of my web folder. My file looks something like this:
That’s it. My upload form starts to work again. But remember, even if IIS lets the file pass through, ColdFusion can still enforce a size limit. Make sure you update the ColdFusion Administrator too.
You can also do this saftly by going into IIS (7.5) Admin, Request filtering (You have to have request filtering installed)