Web引用说明:无连接可以作出,因为目标机器积极地拒绝它 [英] Web Reference Help: No connection could be made because the target machine actively refused it

查看:103
本文介绍了Web引用说明:无连接可以作出,因为目标机器积极地拒绝它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好了,所以我学习ASP.NET通过一个简单的程序在用户的Gmail凭证读取,并从他们输入到控制台构建电子邮件,但我发现了一个新的错误,我没有得到昨天,我还没有更改的任何code。该错误是41行,所以我已经提供了(在code的剩下的只是读取输入转换成字符串)我已禁用我的防火墙都无济于事,而且还试图HTTP://本地主机/服务。 ASMX,这也不管用。我也试着重新启动IIS。

Ok, so I'm learning about ASP.NET by making a simple program to read in a user's gmail credentials and construct an email from their input into the Console, but I'm getting a new error that I was not get yesterday, and I have not changed ANY code. The error is on line 41, so I have provided that (the rest of the code is just reading input into Strings) I have disabled my firewall to no avail, and have also tried "http://localhost/Service.asmx", which doesn't work either. I've also tried restarting IIS.

我是完全新的这个问题上,但错误暗示,对我来说,该程序与服务器进行通信,但正在被阻塞端口否认,但我已禁用我的防火墙和错误仍然存​​在。有任何想法吗?在此先感谢!

I'm completely new to this subject, but the error suggests, to me, that the program is communicating with the server but is being denied by a blocked port, but I have disabled my firewall and the error persists. Any ideas? Thanks in advance!

/*40*/  Communication_Service.Service CommServiceProxy = new Communication_Service.Service();
/*41*/  Result = CommServiceProxy.SendMail(GmailAccount, Password, To, Subject, Body);

有一个错误你下载的http://本地主机:4932 / Service.asmx 。无法连接到服务器上删除。无连接可以作出,因为目标机器积极地拒绝它127.0.0.1:4492

There was an error dowloading http://localhost:4932/Service.asmx. Unable to connect to the remove server. No connection could be made because the target machine actively refused it 127.0.0.1:4492

推荐答案

听起来你正在运行的卡西尼(开发服务器)。在 HTTP应用程序://本地主机:4932 / 需要启动。你可能有多个站点,并需要多个启动项目。右键点击你的解决方案,然后单击设置启动项目,选择多个,并选择所有网站。在VS转到调试,运行无需调试和他们都应该开始。

Sounds like you are running cassini (development server). The application at http://localhost:4932/ needs to be started. You probably have multiple sites and need multiple start up projects. Right click your solution and click set start up project, pick multiple, and select all your websites. On VS goto debug, run without debugging and they should all start.

这篇关于Web引用说明:无连接可以作出,因为目标机器积极地拒绝它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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