This topic is locked

Upload a document

9/8/2008 2:06:27 PM
ASPRunnerPro General questions
T
tlalle author

I am not able to upload all documents... I have not been able to quantify why I can upload some documents. Very few attemps have acutally been successful. When it does fail I get the following error:

[indent][/indent]Request not Allowed

error "ASP 0104 : 80004005'

Operation not Aloowed

/map/include/commonfunctions.asp, line 3950
I have not been able to determine of its a file size, file type or naming convention.

T
tlalle author 9/8/2008

I have extracted the function that contains line 3950 as stated in teh error: Line 3950 is in bold text
Function ParseMultiPartForm

if Request.TotalBytes = 0 then

ParseMultiPartForm = false

Exit Function

end if

ParseMultiPartForm = true

Dim postData

postData = Request.BinaryRead(Request.TotalBytes)

contentType = Request.ServerVariables( "HTTP_CONTENT_TYPE")

ctArray = split( contentType, ";")

if trim(ctArray(0)) = "multipart/form-data" then

errMsg = ""

' grab the form boundry...

bArray = split( trim( ctArray(1)), "=")

boundry = Unicode2Bytes("--" & trim( bArray(1)))

currentPos = 1

inStrByte = 1

While inStrByte > 0

inStrByte = InStrB(currentPos, postData, boundry)

m = inStrByte - currentPos

If m > 1 Then

val = MidB(postData, currentPos, m)
infoEnd = instrB( val, chrb(13) & chrb(10) & chrb(13) & chrb(10) )

if infoEnd > 0 then

varInfo = Bytes2String(midb( val , 1, infoEnd - 1))

varValue = midb( val , infoEnd + 4, lenb(val) - infoEnd - 5)
if InStr(1, varInfo, "Content-Type") < 1 then

varValue=Bytes2String(varValue)

else

if lenb(varValue) mod 2 then varValue = varValue & chrb(0)

end if
strField = getFieldName(varInfo)

if myRequest.exists(strField) then

myRequest(strField) = myRequest(strField) & "," & varValue

else

myRequest.add strField, varValue

end if
end if

end if

currentPos = lenb(boundry) + inStrByte

wend

else

errMsg = "Wrong encoding type!"

end if
End Function

Sergey Kornilov admin 9/8/2008

Post your application to Demo Account and send the URL to support@xlinesoft.com along with file that causes the problem.

T
tlalle author 9/8/2008

I may have found part of my problem:

Error:

Request object error

'ASP 0104 : 80004005' Operation not Allowed
Reason:

IIS6.0 prevents the upload of files more than +200Kb. So you need to make some changes in the default IIS settings first.
Background:

For IIS6.0 users, the AspMaxRequestEntityAllowed property specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of AspMaxRequestEntityAllowed, IIS returns a 403 error response. This property is related in function to MaxRequestEntityAllowed, but is specific to ASP request. Whereas you might set the MaxRequestEntityAllowed property to 1 MB at the general World Wide Web Publishing Service (WWW Service) level, you may choose to set AspMaxRequestEntityAllowed to a lower value, if you know that your specific ASP applications handle a smaller amount of data.
Solution:

Open your metabase.XML which is located in c:\Windows\System32\Inetsrv find the line "AspMaxRequestEntityAllowed" and change it to "1073741824". This is 1GB - of course you can enter another value to suite your needs. NOTE: Before you edit the file, be sure to stop the IIS service first or else you won't be able to save the file.

T
tlalle author 9/8/2008

editing this xml file resolved the ASP issue... however I still had to edit a setting on my IIS server. Session timeout for the script. i increased it from 90 to 300 and now I am able to load the files I need.
Thanks for your help.