我在iis运行了大文件上传,但是报了System.OutOfMemoryException”的异常。iis服务器内存溢出,怎么解决啊,我在网上说让修改machine.config
<processModel
enable = "true"
timeout = "10675199.02:48:05.4775807"
idleTimeout = "10675199.02:48:05.4775807"
shutdownTimeout = "00:00:05"
requestLimit = "2147483647"
requestQueueLimit = "5000"
restartQueueLimit = "10"
memoryLimit = "20"
webGarden = "false"
cpuMask = "0xffffffff"
userName = "machine"
password = "AutoGenerate"
logLevel = "Errors"
clientConnectedCheck = "00:00:05"
comAuthenticationLevel = "Connect"
comImpersonationLevel = "Impersonate"
responseDeadlockInterval = "00:03:00"
responseRestartDeadlockInterval = "00:03:00"
autoConfig = "false"
maxWorkerThreads = "20"
maxIoThreads = "20"
minWorkerThreads = "1"
minIoThreads = "1"
serverErrorMessageFile = ""
pingFrequency = "10675199.02:48:05.4775807"
pingTimeout = "10675199.02:48:05.4775807"
maxAppDomains = "2000"
/>
将他修改成这样,但是还是报错啊,怎么回事啊,有人遇见过吗?
在web.config中设置一下<httpRuntime maxRequestLength="size in kbytes"/>。
参考文章:http://www.cnblogs.com/bober/archive/2008/11/20/1337486.html
楼主,去找个大文件上传的组件吧,上传1G文件?放在内存中?服务器肯定受不了.