简体   繁体   中英

system.net.webexception C# Vista

I have object of type WebClient which successfully connects to web server. But when I run this code under Vista I get system.net.webexception socket error.

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. 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. Thanx for your time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM