我试图让我们当前安装的Team Foundation Server(TFS)2008正确发送警报和电子邮件通知。
我遇到的主要问题是这个错误:
TF53010:Team Foundation组件或扩展中出现以下错误:date(UTC):8/18/2009 3:27:39 PM计算机:DEV02应用程序域:/ LM / W3SVC / 681929560 /根/服务2- 128950828377749110程序集:Microsoft.TeamFoundation.Server,版本= 9.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a; v2.0.50727进程详细信息:进程名称:w3wp进程ID:4484线程ID:6072帐户名称:NT AUTHORITY \ NETWORK SERVICE
详细消息:TF50282:无法连接到以下电子邮件服务器:10.1.0.166错误消息:System.Net.Mail.SmtpException:邮箱不可用。 服务器响应是:5.7.1客户端没有权限发送System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode,string响应)上的发件人System.Net.Mail.MailCommand.Send(SmtpConnection conn,Byte System.Net.Mail.SmtpClient.Send(MailMessage消息)在Microsoft.TeamFoundation.Server System.Net.Mail.SmtpTransport.SendMail(MailAddress发件人,MailAddressCollection收件人,stringdeliveryNotify,SmtpFailedRecipientException和exception) .WebServiceNotification.SendOneEmail(布尔明文,string到)
有关更多信息,请参阅http://go.microsoft.com/fwlink/events.asp上的帮助和支持中心。
Docs for TFS say that edit the web.config in DIVE \ Program Files \ Microsoft Visual Studio 2008 Team Foundation Server \ Web Services \ Services
我对这个文件的编辑如下:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="ConnectionString" value="Application Name=TeamFoundation;Persist Security Info=False;Initial Catalog=TfsIntegration;Data Source=DEV02;Integrated Security=SSPI"/> <add key="eventingEnabled" value="true" /> <add key="DetailedExceptions" value="false" /> <add key="emailNotificationFromAddress" value="[email protected]" /> <add key="smtpServer" value="10.1.0.166" /> <!-- Optional Alert Settings AlertUseReplyTo: True, False (default: True). Specifies that the ReplyTo property of the email alert should be set. When false, the From property is set. <add key="AlertUseReplyTo" value="True" /> --> </appSettings> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="bin\Plugins;bin\Plugins\zh-chs;bin\Plugins\zh-cht;bin\Plugins\de;bin\Plugins\es;bin\Plugins\fr;bin\Plugins\it;bin\Plugins\ja;bin\Plugins\ko"/> </assemblyBinding> </runtime> <system.web> <!-- Enable the HttpHandlers for file upload and download --> <httpHandlers> <add verb="*" path="methodology.asmx" type="Microsoft.TeamFoundation.Client.MethodologyDownloadHandler" /> <add verb="*" path="methodologyUpload.asmx" type="Microsoft.TeamFoundation.Client.MethodologyUploadHandler" /> </httpHandlers> </system.web> </configuration>
有些事情我想知道是这样的:
任何input将是真棒! 谢谢!
看看configuration,我看不出有什么明显的错误在TFS端。 然而,我们有一个类似的问题,发现内部继电器closures在Exchange的特定服务器。 一旦它被允许通过它没有问题的工作。
技术共和国有一个关于允许Exchange 2007 在这里继电器的详细文章
为了将来的参考,TFS 2010使新的pipe理控制台使电子邮件发送configuration变得更加容易。 这是一个3点击过程。
Exchange 2007将默认要求您为该发送服务器(TFS服务器)定义一个连接器,然后才能连接到Exchange并发送消息。 或者,正如其他文章所述,打开允许从内部主机的中继是另一种可能性。