Friday, June 6, 2008

Request object error

I came across an interesting problem today that I wanted to document in case I hit it again and provide some notes in the hope that this helps somebody else.

An ASP (not .net) forum that I'm responsible had the following error:

Request object error 'ASP 0104 :80004005'
Operation not Allowed
/forum/inc_UploadDefault.asp, line 4

The message wasn't that useful but I finally tracked down that it came from trying to upload a file to the ASP forum that was larger than 200 Kb.

It turns out that IIS 6.0 prevents the uploading of files larger than 200 Kb. This is not a big deal and I would expect there to be some sort of default limit.

What I did find unusual though were the steps that I had to go through to increase this limit.

  1. Stop "IIS Admin Service" - this also stopped "Word Wide Web Publishing Service", "FTP Publishing Service", and "HTTP SSL"
  2. Edit the C:\WINDOWS\system32\inetsrv\MetaBase.xml file and find the entry that read AspMaxRequestEntityAllowed="204800" and change this to read a larger value.
  3. Save the file.
  4. Restart the 4 services.

I would have expected to be able to change this entry through an interface but it appeared that I had to stop the sites to do this. If anybody knows a more elegant way to do this then please post a comment.

No comments:

Post a Comment