error when using "file.postedfile.saveas"


New member
Oct 20, 2004
Programming Experience
I have a web app where users can upload Quicktime movies to my web server and then get a link back to where they can view them. I'm using aspx and my command for saving the file is:

file.postedfile.saveas(path & filename)

It works great with files up to about 60MB and then I'm getting this error:

System.IO.IOException: Insufficient system resources exist to complete the requested service. 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 ASP.Default_aspx.SubmitButton_Click(Object Source, EventArgs e) in C:\Inetpub\Approvals\default.aspx:line 27

with anything larger.

I cant find any reference to that error in any .net related issues (only some with SQL but I'm not using SQL).

I have modified my web.config to allow up to 150 MB files (httpRuntime maxrequestlength="150000") and my server timeout (executiontimeout="60")

Any ideas of what's causing this?

Server is running on PIII 1 GHz, Win 2000 SP4, .Net 1.1, IIS, 500 MB RAM

Last edited:
Top Bottom