无法连接到asp.net中的远程服务器 [英] Unable to connect to the remote server in asp.net

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

问题描述

你好朋友:

 

当我执行我的项目时会抛出这种异常 

when ever i execute my project it throws this kind of exception 

" System.Net.Mail.SmtpException:发送邮件失败。 ---> System.Net.WebExceptio

n:无法连接到远程服务器---> System.Net.Sockets.SocketExceptio

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

7.0.0.1:25

7.0.0.1:25

如何清除此例外 

how to clear this exception 

帮助我紧急 

help me its urgent 

推荐答案

因为您使用的是127.0.0.1这将指本地系统上配置的SMTP。请从服务经理检查您的SMTP服务。检查是否已安装smtp,并且您确实有正确的优先权来访问它。另请检查您的网络管理员是否阻止从
smtp发送电子邮件。

Since your are using 127.0.0.1 this will refer to SMTP configured on local system. Please check your SMTP service from service manager. Check if smtp is been installed and you do have proper previleage to access this. Also check if sending of email from smtp is not been blocked by your network administrator.


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

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