我正在尝试使用System.Net.WebClient对象从我的网站下载一个小文件(120kb),但是我收到此错误:“超出了邮件长度限制”。
string url = "http://0.0.0.0/test.txt";
WebClient MyWebClient = new WebClient();
string download = MyWebClient.DownloadString(url);
我已将maxRequestLength
放入配置文件并设置FileSizeLimitInBytes
注册表项,但没有结果。 ansync下载中的问题相同。
系统:.NET 4.0,Windows XP。