慢是TCP/IP的特性把,邮件附件超过2M就不让上了,也一定是这个原因

解决方案 »

  1.   

    最大上传可以设置为比较高的值(web.config),但是速度就不知道是不是设置的问题了。可能跟机器有关系,我在本机速度就很快,换到服务器上就不行了。
      

  2.   

    那是因为“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"/>还有在“Web.config”需设置:
    <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="40960" executionTimeout="1800" />//maxRequestLength="40960"表示最大为 40M
    //executionTimeout="1800" 表示超时限制为30分钟