la pagina per upload di un file mi da il seguente errore:

Microsoft VBScript runtime error '800a0006'

Operation not Allowed

/backoffice/upload/upload_UPLOAD.asp, line 76

si tratta del semplice script che avevo trovato tempo fa in rete e modificato alcune cose, ho notato che fino a 2 MG riesce a far l'upload in caso contrario restituisce l'errore sopra...

codice:
<%
'variabili di configurazione 
'Dim folder 
folder_upload = "/public/upload" 'directory sul server con accesso in scrittura
dimensione_massima_file = 20000000 'bytes
'fine variabili di configurazione 

Server.ScriptTimeOut = 99000000
Response.Expires = 0 
Response.Buffer = TRUE 
Response.Clear 

Sub BuildUploadRequest(RequestBin) 
	PosBeg = 1 
	PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(13))) 
	boundary = MidB(RequestBin,PosBeg,PosEnd-PosBeg) 
	boundaryPos = InstrB(1,RequestBin,boundary) 
	Do until (boundaryPos=InstrB(RequestBin,boundary & getByteString("--"))) 
		Dim UploadControl 
		Set UploadControl = CreateObject("Scripting.Dictionary") 
		'Get an object name 
		Pos = InstrB(BoundaryPos,RequestBin,getByteString("Content-Disposition")) 
		Pos = InstrB(Pos,RequestBin,getByteString("name=")) 
		PosBeg = Pos+6 
		PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(34))) 
		Name = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg)) 
		PosFile = InstrB(BoundaryPos,RequestBin,getByteString("filename=")) 
		PosBound = InstrB(PosEnd,RequestBin,boundary) 
		If PosFile<>0 AND (PosFile<PosBound) Then 
			PosBeg = PosFile + 10 
			PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(34))) 
			FileName = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg)) 
			UploadControl.Add "FileName", FileName 
			Pos = InstrB(PosEnd,RequestBin,getByteString("Content-Type:")) 
			PosBeg = Pos+14 
			PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(13))) 
			ContentType = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg)) 
			UploadControl.Add "ContentType",ContentType 
			PosBeg = PosEnd+4 
			PosEnd = InstrB(PosBeg,RequestBin,boundary)-2 
			Value = MidB(RequestBin,PosBeg,PosEnd-PosBeg) 
		Else 
			Pos = InstrB(Pos,RequestBin,getByteString(chr(13))) 
			PosBeg = Pos+4 
			PosEnd = InstrB(PosBeg,RequestBin,boundary)-2 
			Value = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg)) 
		End If 
		UploadControl.Add "Value" , Value 
		UploadRequest.Add name, UploadControl 
		BoundaryPos=InstrB(BoundaryPos+LenB(boundary),RequestBin,boundary) 
	Loop 
End Sub 

Function getByteString(StringStr) 
	For i = 1 to Len(StringStr) 
		char = Mid(StringStr,i,1) 
		getByteString = getByteString & chrB(AscB(char)) 
	Next 
End Function 

Function getString(StringBin) 
	getString ="" 
	For intCount = 1 to LenB(StringBin) 
		getString = getString & chr(AscB(MidB(StringBin,intCount,1))) 
	Next 
End Function 

byteCount = Request.TotalBytes 

RequestBin = Request.BinaryRead(byteCount)   
Dim UploadRequest 
Set UploadRequest = CreateObject("Scripting.Dictionary") 

BuildUploadRequest RequestBin 

contentType = UploadRequest.Item("blob").Item("ContentType") 
filepathname = UploadRequest.Item("blob").Item("FileName") 
filename = Right(filepathname,Len(filepathname)-InstrRev(filepathname,"\")) 
value = UploadRequest.Item("blob").Item("Value") 

'response.write filepathname &"
"
'response.write filename &"
"
'response.Write(Server.mappath(folder_upload)&"\"&filename)
'response.end

FileMessage = ""
'controllo se file da uploadare è > di dimensione_massima_file
if byteCount > dimensione_massima_file then 
	FileMessage = "La grandezza del file "& UCase(filename) & " è superiore a quella consentita."
else
	'------ codice verifica l'esistenza di un file --------
	set fso = Server.CreateObject("Scripting.FileSystemObject") 
	file = server.mappath(folder_upload & "/" & filename) 
	if fso.fileExists(file) then
		FileMessage = "Il file "& UCase(filename) & " esiste!"
	else	
		'Create FileSytemObject Component 
		'response.Write(Server.mappath(folder_upload)&"\"&filename)
		'response.End()
		Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject") 
		Set MyFile = ScriptObject.CreateTextFile(Server.mappath(folder_upload)&"\"&filename) 
		For i = 1 to LenB(value) 
			MyFile.Write chr(AscB(MidB(value,i,1))) 
		Next 
		MyFile.Close
	end if
	set fso = nothing	
	'-------------- FINE ----- codice verifica l'esistenza di un file ------------
end if
%>