Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sockets 无法建立连接,因为目标计算机主动拒绝127.0.0.1:25_Sockets_Web Applications - Fatal编程技术网

Sockets 无法建立连接,因为目标计算机主动拒绝127.0.0.1:25

Sockets 无法建立连接,因为目标计算机主动拒绝127.0.0.1:25,sockets,web-applications,Sockets,Web Applications,我在使用web应用程序运行web服务时遇到此错误 No connection could be made because the target machine actively refused it 127.0.0.1:8083 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more i

我在使用web应用程序运行web服务时遇到此错误

No connection could be made because the target machine actively refused it 127.0.0.1:8083 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8083

Source Error: 


Line 108:        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/VerifyFingerPrint", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 109:        public string VerifyFingerPrint([System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] VeriBmp, string empcode) {
Line 110:            object[] results = this.Invoke("VerifyFingerPrint", new object[] {
Line 111:                        VeriBmp,
Line 112:                        empcode});


Source File: D:\Mayuri1working\BOBFingerPrint\BOBFingerPrint\Web References\localhost\Reference.cs    Line: 110 

请帮忙

首先更新应用程序中使用的web服务引用。 如果未更新web服务引用,请检查web服务项目解决方案中包含源代码文件的所有文件和文件夹,并重新生成它,然后更新项目中使用的web引用。 否则,如果工作正常,则需要按照上述解决方案中的建议,检查开发服务器使用的网络服务和windows防火墙设置

我也遇到了同样的问题,我开始知道我引用了一个错误的文件夹,它有相同的名称,但用在了另一个解决方案中


喜欢编码。

这意味着本地主机上的8083端口上没有运行服务。为什么标题中说
:25
,而问题中说
:8083
?您使用哪个端口?端口25通常由SMTP使用,而不是web服务。该代码不是PHP。我认为无法建立连接,因为目标计算机主动拒绝它。如果你不知道这意味着什么,你可以试试谷歌搜索。