Express: Request object error 'ASP 0104 : 80004005' - Operation not Allowed error for files over 200kb in IIS6 or IIS7

Document ID: 10287

Synopsis

An 'Operation not Allowed' error occurs when Express is installed on IIS6 or IIS7 while trying to attach files over 200k. The error commonly associated with this problem is: Request ob

More Information

Express: Request object error 'ASP 0104 : 80004005' - Operation not Allowed error for files over 200kb in IIS6 or IIS7 An 'Operation not Allowed' error occurs when Express is installed on IIS6 or IIS7 while trying to attach files over 200k. The error commonly associated with this problem is:

Request object error 'ASP 0104 : 80004005'

Operation not Allowed

IIS is unable to upload file attachments that are greater than 200kb in size by default as a result of the increased security found in IIS6 and IIS7.

In order to circumvent this problem, follow the steps below:

IIS6

  • Make a backup of the c:\windows\system32\inetsvr\metabase.xml file.
  • In IIS, select the properties of the root object.
  • Select the option 'Enabled Direct Metabase Edit'
  • Edit the metabase.xml with Notepad. Some other text editors may add some extra characters when you edit the document, so Notepad is the recommended text editor for this.
  • Find the line "AspMaxRequestEntityAllowed" and change the value to 10485760*
  • In IIS, select the properties of the root object.
  • De-select 'Enable Direct Metabase Edit'
  • Stop and restart IIS
*This allows IIS to create ASP objects that can be up to 10MB in size. You can replace this value with any value of your choice. This number represents bytes to upload.

IIS7

  • Open IIS manager click on the web site and double click the ASP icon in the features view.
  • Expand Limits Properties and modify the Maximum Requesting Entity Body Limit.