Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 不支持webclient uri格式_Asp.net_Wcf_C# 4.0 - Fatal编程技术网

Asp.net 不支持webclient uri格式

Asp.net 不支持webclient uri格式,asp.net,wcf,c#-4.0,Asp.net,Wcf,C# 4.0,这里是fileaddress地址 WebClient fileReader = new WebClient(); fileAddress = listItem; //error here uri formats are not supported fileReader.DownloadFile(fileAddress, saveTo); 您可以尝试使用WebClient类在internet上打开文件 看看这个- 打开并下载图像文件 希望对您有所帮助您可以尝试使用WebClient类在

这里是fileaddress地址

WebClient fileReader = new WebClient();
fileAddress = listItem;    

//error here uri formats are not supported
fileReader.DownloadFile(fileAddress, saveTo);

您可以尝试使用
WebClient
类在internet上打开文件 看看这个- 打开并下载图像文件


希望对您有所帮助

您可以尝试使用
WebClient
类在internet上打开文件 看看这个- 打开并下载图像文件


希望有帮助

您需要将URI字符串中的
\
替换为
/
,以获得有效地址:

http://pcdev04.pcsolution.net:83\Update32\rts\RTSUpdate.dll

您需要将URI字符串中的
\
替换为
/
,以获得有效地址:

http://pcdev04.pcsolution.net:83\Update32\rts\RTSUpdate.dll