English 中文(简体)
B. 主动拒绝连接的目标机器
原标题:Target Machine Actively Refused Connection

有几个问题,但我的情况似乎有所不同。 我的法典非常简单:

WebClient client = new WebClient();
client.DownloadFile("http://www.xkcd.com", "xkcd.html");

However, I get the error "No connection could be made because target machine actively refused the connection." However, I also see this problem with connections to any website. It also only appears in .NET applications, all of a sudden, none of them can access the web. Any ideas?

问题回答

为了进行卫生检查,我喜欢用PowerShell来打一皮,因此我建议,如果你能够的话。

此外,确保研究所在该系统中尝试这一l,只是为了确保不会发生任何意外的情况(强制代理、现场实际倒塌、国家安全局或东道国档案正在向其他部分解决等等)。

C:Usersjames » $wc = new-object system.net.webclient
C:Usersjames » $wc.DownloadFile("http://www.xkcd.com", "xkcd.html")
C:Usersjames » dir .xkcd.html


    Directory: Microsoft.PowerShell.CoreFileSystem::C:Usersjames


Mode           LastWriteTime       Length Name
----           -------------       ------ ----
-a---     8/26/2010  1:08 AM         7454 xkcd.html

用户说,你的代码是相关的。 例如,该法典可能以青少年/女性为对象,但不是在协会中。 NET app。

利用互联网探索者浏览器进入该网站。 问题在于网络使用来自国际电子计算中心的替代环境。 此外,还有任何错误的代理环境,你拿着你的声音。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签