From: bostonnole on
I am getting this WinIOError "Insufficient system resources exist to
complete the requested service" when I try to execute the following
code in an ASP.NET 1.1 application uploading a very large file (140
MB). Server is Windows 2003 Standard (SP1) with 1 GB memory running
IIS 6. There is plenty of free hard drive space.

STACKTRACE: at System.IO.__Error.WinIOError(Int32 errorCode, String
str) at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset,
Int32 count) at System.IO.FileStream.Write(Byte[] array, Int32 offset,
Int32 count) at System.Web.HttpPostedFile.SaveAs(String filename) at
WebSFTP.Viewer.PleaseWaitButton1_Click(Object sender, EventArgs e)


CODE:

Dim

fil As HttpPostedFile = attachment.PostedFile
fil.SaveAs(strSaveLocation & System.IO.Path.GetFileName(fil.FileName))

The exception is thrown on the SaveAs line above. Any one have any
idea what the problem is?

From: BostonNole on
Update -
I have tried increasing the IIS metabase setting
AspMaxRequestEntityAllowed from "204800" to "3145728" and this did not
help at all.

From: booksnore on
Hi,
I'm having an almost identical problem as you except my file size is 130
MB. I've increased the metabase setting and also tested on IIS 5 and 6,
I get the same error. If you come across a resolution please could you
update this message - I will do the same.

Joe

*** Sent via Developersdex http://www.developersdex.com ***