I need to upload large files of at least 1GB in size. I use ASP.Net , C# and IIS 5.1 as my development platform.
I use:
HIF.PostedFile.InputStream.Read(fileBytes,0,HIF.PostedFile.ContentLength)
before use:
File.WriteAllBytes(filePath, fileByteArray)
(does not go here, but gives a System.OutOfMemoryException exception)
I have httpRuntime installed httpRuntime in:
executeTimeout = " 999999 " maxRequestLength = " 2097151 " (it is 2GB!) useFullyQualifiedRedirectUrl = "true" minFreeThreads = "8" minLocalRequestFreeThreads = "4" appRequestQueueLimit = "5000" enableVersionHeader = "true" "true"
I also set maxAllowedContentLength="**2097151**" (I guess it only for IIS7)
I changed the IIS connection timeout to 999,999 seconds.
I canβt upload files even 4578KB (Ajaz-Uploader.zip)
user193647
source share