This topic is locked

upload a files

1/20/2006 4:46:37 AM
ASPRunnerPro General questions
L
Leif author

Why can i not upload files over 1.mb
Request object error 'ASP 0104 : 80004005'
Operation not Allowed
/modules/muncks/include/SjovLister_aspfunctions.asp, line 1538

C
clig 1/20/2006

Check: http://www.asprunner.com/forums/index.php?...=2095&hl=buffer
It may be what you are having an issue with...

Sergey Kornilov admin 1/20/2006

Cliq,
thanks, nice info.
Just a quick recap.
Problem: IIS 6: Cannot attach file "Operation Not Allowed"
In IIS 6.0, the ASPMaxRequestEntityAllowed value determines the maximum size POST to the website. If it isn't set high enough it will prevent you from uploading files.
Solution:
Change the ASPMaxRequestEntityAllowed to 1073741824 in the metabase.xml file (usually located in c:\windows\system32\inetsrv)
Before editing metabase.xml file enable editing in IIS settings.

This change does not require stopping IIS, but to make the Metabase.xml file write-able, you need to go to the IIS control panel, right click the server, select properties, and check off the box that says "allow changes to MetaBase configuration while IIS is running".

L
Leif author 1/22/2006

thanks

C
clig 1/22/2006

thanks


MS also offers a MetaBase Editor named MetaBase Explorer in their IIS 6 RK...

J
jaimes0812 9/8/2006



MS also offers a MetaBase Editor named MetaBase Explorer in their IIS 6 RK...


I thought I would include the following information to save time for those that could use the info fast...

To resolve this issue, modify the value in the AspMaxRequestEntityAllowed property to set the maximum number of bytes that are permitted in the entity body of an ASP request. To do this, follow these steps: 1. At a command prompt, type the following command, and then press ENTER:

cd drive:\inetpub\adminscripts

Note In this command to change folders, drive is a placeholder for the hard disk where IIS is installed.

2. At a command prompt, type the following command, and then press ENTER:

cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size

Note In this command, size is a placeholder for the largest file size upload that you want to allow. The maximum value is 1,073,741,824 bytes. Set this value to the lowest possible value that allows for the functionality that you want.

3. At a command prompt, type the following command, and then press ENTER:

iisreset

(courtesy of microsoft - http://support.microsoft.com/kb/327659/en-...1&PA=1&SD=HSCH))