ASP Binary Upload FIX: Request.BinaryRead Operation Not Allowed

Comments 4 Standard

IIS also has a maximum request size that will need to be reset if you’re uploading documents larger than about 200kb.

1) Open IIS Manager by going to start > control panel > administrative tools. Right click on the server name > properties. Click on enable direct metabase edit. If this box isn’t checked you won’t be able to edit the metabase.xml file.

2) Open my computer. In the address bar put this and hit enter: %SYSTEMROOT%\system32\inetsrv

3) Find the metabase.xml file and open it with some kind of text editor

4) Search for the line that says AspMaxRequestEntityAllowed. Change that to your max file upload size.

5) Go back to IIS and uncheck direct edit metabase checkbox.

4 thoughts on “ASP Binary Upload FIX: Request.BinaryRead Operation Not Allowed

  1. This just saved by bacon. I found the “Request.BinaryRead Operation Not Allowed” error by using Fiddler2 to examine the response headers when IE failed to give me a meaningful error message.

    Thank you!

  2. You’re welcome! It drove me nuts trying to figure this one out myself. Hopefully this will prevent others from searching for hours for a solution 🙂

  3. you can also manage this from IIS 7.0 mmc.

    Open site or global setting for ASP, Expand the LImits Properties group. update Maximum Requesting Entity Body LImit to allow for the largest file you expect.

  4. This helped me too. After a manual install of fogbugz 6.0 (don’t ask), I was having problems uploading files bigger than 200K although it wasn’t obvious at the time. Found code in CFileUpload.asp that was doing a Request.BinaryRead and then getting 80004005. The code then redirected to a url on the fogbugz website which no longer exists. Changing the AspMaxRequestEntityAllowed fixed the problem.

    Tried editing the metabase.xml but not able to. Options in IIS Manager to unrestrict editing have been removed from IIS 8.5. Tried using the Metabase editor MBExplorer.exe from the IIS6 resource kit, but this didn’t work either.

    Thanks to Super Mario for the note about IIS mmc. It worked after did it this way.

Leave a comment