大容量数据传输,web.config修改方法 增加 <httpRuntime executionTimeout="900" maxRequestLength="102400" useFullyQualifiedRedirectUrl="false" /> 这样就可以解决你的超时问题。
------解决方案-------------------- ftp吧 using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO;
namespace FtpOper { public class Class1 { public static void Upload(string filename) { string ftpServerIP = @"192.168.1.101/bb"; string ftpUserID = "administrator"; string ftpPassword = "1"; FileInfo fileInf = new FileInfo(filename); string uri = "ftp://" + ftpServerIP + "/" + fileInf.Name; FtpWebRequest reqFTP;