Knowledgebase: For Administrators
File Upload Fails - Operation Not Allowed
Posted by Joseph Carpenski on 22 June 2010 03:45 PM

Symptom:

When uploading a file (lesson, course material, etc) to the LMS, you receive the following (or similar) error:

Request object error 'ASP 0104 : 80004005'
Operation not Allowed

Possible Causes:

  1. IIS is restricting the maximum file size allowed for uploads
  2. There is an operating system bug in the Windows Request object.

Applies To:

Problem #1: Microsoft Windows Server 2003, Microsoft Windows Server 2008

Problem #2: Microsoft Windows Server 2003

Background:

Problem #1: By default, IIS only allows forms to post up to a maximum of approximately 200K of data. Most files that you upload into the LMS will be larger than this, so you must change the maximum allowed data value in the IIS configuration.

Problem #2: Microsoft Windows 2003 has a known bug in the request object that occasionally causes the server to be unable to properly retrieve the uploaded file from the form. The exact cause is unknown however it seems to be specific to the server/client/file combination.

Resolution:

Problem #1

Note: For both Windows Server 2003 and Windows Server 2008 you should stop the IIS service before continuing with these instructions. After you are finished, you can restart IIS.

Microsoft Windows Server 2003:

  1. Using a standard text editor such as notepad, open the IIS Metabase XML file located at: c:\windows\system32\inetsrv\metabase.xml.
  2. Find the line "AspMaxRequestEntityAllowed = 204800" and replace the "204800" with a value that is more appropriate.

Changing this setting is at your discretion, but note that users who are uploading course content will be limited by this value. "1024000" equals approximately 1 MB.

Microsoft Windows Server 2008:

  1. Open a command prompt.
  2. Type cd C:\Windows\System32\inetsrv and press ENTER.
  3. Type appcmd set config -section:asp -limits.maxRequestEntityAllowed:xxxxxx (where xxxxxx is the number of bytes you want to limit uploads to) and press ENTER.

Changing this setting is at your discretion, but note that users who are uploading course content will be limited by this value. "1024000" equals approximately 1 MB.

Problem #2

No fix for this bug currently exists. You may try the following which has been shown to work with reasonable effectiveness:

  • Try uploading the file from a different client computer.
  • Slightly change the size of the uploaded file by adding or changing some non-essential data (or inserting another non-essential file if it is a zip file).
  • If uploading a content package, use the Fetch feature rather than uploading the file directly.

Additional Information:

(2 vote(s))
Helpful
Not helpful