修改conn及IIS均无法完全解决。修改cmd.CommandTimeout = 180; 再运行,即解决,这里设置的时间的180秒,即三分钟!可根据需要设置,如果过长,也可以设置为0,当此属性设置为0时表示不限制时间。此属性值应该慎用。还需要在Web.config配置文件中设置http请求运行时限间
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="720" />
</system.web>
修改conn及IIS均无法完全解决。修改cmd.CommandTimeout = 180; 再运行,即解决,这里设置的时间的180秒,即三分钟!可根据需要设置,如果过长,也可以设置为0,当此属性设置为0时表示不限制时间。此属性值应该慎用。还需要在Web.config配置文件中设置http请求运行时限间
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="720" />
</system.web>