文件上传的速度为什么很慢 可能我没有说清楚 我用的 HtmlInputFile 控件在页面上传文件 硬件应该不是问题 1.7G 512MB 在本机上都很慢 为什么 没有人遇到过吗 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我页面文件设置为 enctype='multipart/form-data'回发时就会上传选中的文件 只需 在事件中得到File1.PostedFile 即可 几乎没有什么代码 我试了一下回发时接受一个3mb左右的文件需要40秒左右(本机) 有高手知道原因吗 为什么上传大文件就会出现错误,我上传100MB 以上的文件老是会出错。并且我设置了最大文件上传是800MB,asp.ent xixi等待时间已是30分钟,并也设置了服务器的内存最大使用率是100%。为何???? 你也太离谱了 大文件 为什么不用ftp 那是因为“C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_wp.exe”认为“(PID: 2020) 被回收,原因是怀疑它处于死锁状态。它在最近的 180 秒钟未对挂起的请求发送任何响应。 ”解决的办法是找到“C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG\machine.config”修改 responseRestartDeadlockInterval="00:09:00" responseDeadlockInterval="00:03:00"如下:<processModel enable="true" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000" restartQueueLimit="10" memoryLimit="60" webGarden="false" cpuMask="0xffffffff" userName="System" password="AutoGenerate" logLevel="Errors" clientConnectedCheck="0:00:05" comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate" responseRestartDeadlockInterval="00:35:00" responseDeadlockInterval="00:30:00" maxWorkerThreads="25" maxIoThreads="25"/> <httpRuntime maxRequestLength=""/>设置上传文件的大小 用http协议上传大文件,有个超时问题。建议你还是找个ftp上传组件,用asp.net调用。 不会啊,设置了web.config中的<httpRuntime maxRequestLength="819200"/>上传80M以下的都没问题啊,并且速度很快。我们那个服务器是HP的,4CPU,2GMEM 关键是配置HTTP的最大长度和等待时间严重同意在config文件里加入:<httpRuntime maxRequestLength="819200"/> 我曾经在 FrameWork1.0 中遇到过这个问题,速度和你所描述的差不多,但是我在 FrameWork1.1 下就变得非常快了,上传4M左右的不会超过十秒钟了。没有改过一行代码。你试试看。 如何在asp页面实现发送传真的功能 c#字符转换 100分求省市区完整数据库 怎么读这个xml文件 sql问题 关于asp.net连接oracle的问题 2005中的page实例化问题!!!!快进快进!!!! Object reference not set to an instance of an object. GET传参数的问题 TreeView里CheckBox问题 DataColumn的defaultvalue问题 DataReader也玩超酷数据显示分页
enctype='multipart/form-data'
回发时就会上传选中的文件
只需 在事件中得到File1.PostedFile 即可 几乎没有什么代码
我试了一下回发时接受一个3mb左右的文件需要40秒左右(本机) 有高手知道原因吗
最大文件上传是800MB,asp.ent xixi等待时间已是30分钟,并也设置了服务器的内存最大
使用率是100%。为何????
responseRestartDeadlockInterval="00:09:00" responseDeadlockInterval="00:03:00"如下:
<processModel enable="true" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000" restartQueueLimit="10" memoryLimit="60" webGarden="false" cpuMask="0xffffffff" userName="System" password="AutoGenerate" logLevel="Errors" clientConnectedCheck="0:00:05" comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate" responseRestartDeadlockInterval="00:35:00" responseDeadlockInterval="00:30:00" maxWorkerThreads="25" maxIoThreads="25"/>
设置上传文件的大小
<httpRuntime maxRequestLength="819200"/>
上传80M以下的都没问题啊,并且速度很快。我们那个服务器是HP的,4CPU,2GMEM
严重同意在config文件里加入:
<httpRuntime maxRequestLength="819200"/>
但是我在 FrameWork1.1 下就变得非常快了,上传4M左右的不会超过十秒钟了。
没有改过一行代码。你试试看。