WebException错误 [英] WebException error
问题描述
您好,
我正在尝试使用以下代码从网址获取HTML源代码:
WebClient w = new WebClient();
string s = w.DownloadString(url);
但是我收到以下错误: "无法找到文件'C:\ Users \\\!!!!!! / p>
我真的不知道如何修复它并可以在网上找到合适的答案。
提前致谢
ps
我在VS2010上使用c#
我在VS2010上使用c#
然后为什么要发布到Visual Basic Express论坛? :)
(不幸的是,即使是VB,我也无法回答这个问题)
>
Hello,
I'm trying to get the HTML source from URL using the following code:
WebClient w = new WebClient();
string s = w.DownloadString(url);
but I'm getting the following error: "Could not find file 'C:\Users\ayeletsh\documents\visual studio 2010\Projects\FinalProject\FinalProject\bin\Debug\www.ynet.co.il'.
I really don't know how to fix it and could find appropriate answer on the web.
Thanks in advance
p.s
I'm using c# on VS2010
I'm using c# on VS2010
Then why post to the Visual Basic Express forum? :)
(Unfortunatelly I can't answer the question even if it was VB)
这篇关于WebException错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!