SmtpClient smtp = new SmtpClient(smtpServer);
smtp.Send(msgMail);
在第二行有时会引发此异常:
System.Net.NetworkInformation.NetworkInformationException:
带有消息:“无法立即完成非阻塞套接字操作”
这意味着什么?可能是什么原因?
一般来说,邮件发送大部分时间都在工作。这是一台 IIS7 Windows 2008 Server 机器。
谢谢你。
编辑:
我在这里找到了一些东西: http ://www.thevbzone.com/modWINSOCK.bas
Public Const WSAEWOULDBLOCK = (WSABASEERR + 35) ' A non-blocking socket operation could not be completed immediately
MSDN 提到了这个错误(http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx):
资源暂时不可用。
This error is returned from operations on nonblocking sockets that
不能马上完成,...
那么,这实际上意味着什么?我是否应该忽略错误,重新发送邮件...?谢谢。