简体   繁体   English

system.net.webexception C#Vista

[英]system.net.webexception C# Vista

I have object of type WebClient which successfully connects to web server. 我有WebClient类型的对象,该对象成功连接到Web服务器。 But when I run this code under Vista I get system.net.webexception socket error. 但是,当我在Vista下运行此代码时,出现system.net.webexception套接字错误。

I was a bit bewildered by my other program that used sockets directly (port scanner) that worked under XP and failed to work under Win7. 我对其他直接使用套接字(端口扫描程序)的程序感到困惑,该程序在XP下无法正常工作,而在Win7下却无法正常工作。 I thought that might be the case in this current app, but since I used WebClient - high level class - bewilderment was justified) The problem solved by adding modifying scope in excepion's for my firefall. 我以为在当前的应用程序中可能是这种情况,但是由于我使用了WebClient-高级类-困惑是有道理的)通过为我的失意在exepion中添加修改范围解决了问题。 Thanx for your time. 感谢您的时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 xmlrpc和System.Net.WebException .net 3.5 c# - xmlrpc and System.Net.WebException .net 3.5 c# C#System.Net.WebException检索自定义404消息 - C# System.Net.WebException Retrieving custom 404 message 为什么我有这个错误? 抛出异常:System.dll C# 中的“System.Net.WebException” - Why do i have this error? Exception thrown: 'System.Net.WebException' in System.dll C# c# 抛出异常:System.dll 中的“System.Net.WebException” - c# Exception thrown: 'System.Net.WebException' in System.dll C#.NET-HttpWebRequest-System.Net.WebException-尝试过多的自动重定向 - C# .NET - HttpWebRequest - System.Net.WebException - Too many automatic redirections were attempted C#HAP“ System.Net.WebException:无法解析远程名称”异常 - C# HAP “System.Net.WebException: The remote name could not be resolved ” exception C#WCF“ System.Net.WebException:远程服务器返回错误:(400)错误的请求。” - C# WCF “System.Net.WebException: The remote server returned an error: (400) Bad Request.” C# WebResponse.GetResponse() 在未找到 404 页面上返回 System.Net.WebException - C# WebResponse.GetResponse() returns System.Net.WebException on 404 page not found C#System.Net.WebException:'尝试了太多的自动重定向。' - C# System.Net.WebException: 'Too many automatic redirections were attempted.' System.dll中的System.net.webexception - System.net.webexception in system.dll
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM