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

时间:2015-07-02 23:11:01

标签: 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 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 

请帮忙!

1 个答案:

答案 0 :(得分:0)

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

我也遇到了同样的问题,我发现我引用了错误的文件夹,但名字相同但在另一个解决方案中使用过。

享受编码。

相关问题