无法连接到远程服务器异常 - Vista中的Web服务异常 [英] Unable to connect to the remote server exception - Web service exception in Vista

查看:234
本文介绍了无法连接到远程服务器异常 - Vista中的Web服务异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我写了一个从远程服务器读取数据的Web服务。使用此网络服务的客户端应用程序在Windows XP上运行正常。当尝试在Vista上运行客户端应用程序时,我得到以下异常:

I wrote a web service that reads data from a remote server. The client application which uses this web service, is working fine on Windows XP. When trying to run the client application on Vista, I get the following exception:

System.Net.WebException:无法连接到远程服务器---> System.Net.Sockets.SocketException:尝试以其访问权限禁止的方式访问套接字:...

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions:..."

我正在运行客户端应用程序作为Vista的管理员。

I am running the client application as an administartor on Vista.

有人可以告诉我什么是错的吗?

Can somebody tell me whats wrong?

谢谢,

TR

推荐答案

关闭防火墙?如果有效,那么你的防火墙会阻止你然后可以做一些调查来弄清楚究竟是什么。一旦你知道,你可以添加一个规则,打开防火墙阻止的任何内容。根据这个页面,它也可能是另一个程序试图访问同一个套接字。也许你没有在创建新套接字之前正确关闭套接字,所以你正在踩自己的脚趾。或者可能是另一个程序尝试ting访问同一个远程服务器。不太确定,但这些是你可以考虑的一些想法。
Turn off your firewall? If it works, then your firewall is blocking something and you can then do some investigation to figure out exactly what. Once you know that, you can add a rule that opens up whatever your firewall is blocking. According to this page, it could also be that another program is attempting to access the same socket. Perhaps you are not closing the socket correctly before creating a new one, so you are stepping on your own toes. Or maybe another program is attempting to access the same remote server. Not quite sure, but those are some ideas for you to look into.


非常感谢,

防火墙导致了这个问题。



TR
Thank you very much,
The firewall caused this problem.

TR


Vista很糟糕。当您收到特定错误时,在引号中使用Google搜索是查找帮助的最佳方式。我为你做了这件事,我发现的主要事情是打开太多SQL Server连接会导致此错误。其他人通过为Vista的VS 2005产品(包括Express版本)安装Visual Studio补丁解决了这个问题。 每个人都同意 - Vista很糟糕。

Vista sucks. When you get a specific error, googling it in quotes is the best way to find help. I did that for you, and the main thing I found was that having too many SQL Server connections open can cause this error. Someone else solved it by installing the Visual Studio patch for VS 2005 products (including the Express editions) for Vista.  Everyone agreed - Vista sucks.


这篇关于无法连接到远程服务器异常 - Vista中的Web服务异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆