1

我正在尝试使用 System.Net.WebClient 对象从我的网站下载一个小文件(120kb),但出现此错误:“超出了消息长度限制”。

string url = "http://0.0.0.0/test.txt";
WebClient MyWebClient = new WebClient();
string download = MyWebClient.DownloadString(url);

我已经放入maxRequestLength了我的配置文件并设置FileSizeLimitInBytes了注册表项,但没有结果。异步下载中的同样问题。系统:.NET 4.0,Windows XP。

谢谢你,里卡多

4

0 回答 0