SYSTEM.NET.MAIL SMPT超时问题 [英] SYSTEM.NET.MAIL SMPT TIMEOUT ISSUE
问题描述
问题在于:我可以发送邮件一次,也许两次,然后我的应用程序返回错误。有时我可以关闭应用程序并重新启动它以再次发送。其他时候我必须关闭Visual Studio才能再次发送邮件。
Here's the problem: I'm able to send mail one, maybe two times then i get time out errors returned by my application. Sometimes I can shut the application down and restart it to send again. Other times I have to shut Visual Studio down before I can send mail again.
这是代码,后跟跟踪。请注意,跟踪文件很大(我正在发送附件)所以我修剪它以显示我在第一次成功发送后得到的错误。
Here is the code, followed by the trace. Note that the trace file is huge (i'm sending attachments) so i trimmed it to show the error that I get after the first successful send.
如果我有一个,多个或没有附件并且与超时值无关,则会出现问题。
The problem occurs whether I have one, several, or no attachments and is independent of the timeout value.
代码正在运行作为Windows窗体的一部分
The code is running as part of a windows form
CODE
推荐答案
听起来您的远程站点和TFS服务器之间可能存在连接问题。我会像你一样检查与网络管理员联系,看一下连接,以及远程站点和TFS服务器之间的任何中间防火墙,代理,防病毒等,看看他们是否可以找到任何可能导致这些问题的瓶颈。
It sounds like you may have some connectivity problems between your remote site and the TFS server. I would check like you to get in touch with the network admins to take a look at the connection, and any intermediate firewalls, proxies, anti-viruses etc.. between the remote site and the TFS server and see if they can find any bottlenecks that may be causing these problems.
这篇关于SYSTEM.NET.MAIL SMPT超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!