首页 新闻 赞助 找找看

问一下,我的邮件代码总是抛出“邮件发送失败”,提示:System.Net.Sockets.SocketException: 无法加载或初始化请求的服务提供程序。

0
悬赏园豆:5 [待解决问题]

用户代码未处理 System.Net.Mail.SmtpException
HResult=-2146233088
Message=发送邮件失败。
Source=System
StackTrace:
在 System.Net.Mail.SmtpClient.Send(MailMessage message)
在 WebApplication1._Default.Page_Load(Object sender, EventArgs e) 位置 F:\公司\WebApplication1\WebApplication1\Default.aspx.cs:行号 24
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.Net.Sockets.SocketException
HResult=-2147467259
Message=无法加载或初始化请求的服务提供程序。
Source=System
ErrorCode=10106
NativeErrorCode=10106
StackTrace:
在 System.Net.Sockets.Socket..ctor(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
在 System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6)
在 System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback)
在 System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
在 System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
在 System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
在 System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint)
在 System.Net.Mail.SmtpClient.GetConnection()
在 System.Net.Mail.SmtpClient.Send(MailMessage message)
InnerException:

抬头族的主页 抬头族 | 菜鸟二级 | 园豆:203
提问于:2017-10-24 16:09
< >
分享
所有回答(1)
0

自己搜下10106的socket code怎么处理吧。

Daniel Cai | 园豆:10424 (专家六级) | 2017-10-24 18:59
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册