1

我们有一个 TFS 2012 服务器并尝试启用电子邮件警报。但是,我们从未收到它们。

我已经设置了团队警报和特定于我的帐户的警报。在 TFS 管理控制台中配置 SMTP 设置时,我尝试将凭据留空,并使用我自己的凭据。两者都不起作用。

我还在 C# 中创建了一个简单的控制台应用程序,使用System.Net.Mail.SmtpClient该类来测试来自 TFS 服务器的带有和不带有我的凭据的电子邮件,并且它可以工作。

事件日志不显示任何相关的错误消息。

如何解决和解决此问题?

更新

使用本文中的信息,我能够从数据库作业历史表中提取以下错误消息。

elapsed time: 00:00:00.5255295, sql calls: 35, sql connect time: 00:00:00, sql execute time: 00:00:00.0311960, non-sql time: 00:00:00.4943335 (94%), cpu time: 00:00:00.0312002 ( 5.9%), avg connect time: 0.00 ms, avg execute time:  0.9 ms. All methods quick. All sql calls quick. CollectionError: CreateEvent != TransformEvents. CollectionError: AfterReadSubscription != ExpandEvents. CollectionError: RemoveRestrictedContent != FilterNotification. CollectionError: RemoveRestrictedContent != SendNotifications.
There were errors or warnings during notification delivery.

0/0 emails delivered.
0/0 soap notifications delivered. 
1 errors.
0 warnings.

-------------------------------
Notification not delivered due to error during filtering of restricted content.

Notification: WorkItemChangedEvent (DeliveryType: EmailHtml; Address: )

Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
   at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
   at System.Security.Cryptography.MD5.Create(String algName)
   at Microsoft.TeamFoundation.Framework.Server.Alm.ConversationThread.Create(TeamFoundationRequestContext requestContext, ToolType toolType, Byte artifactType, Int32 artifactId, String topic, DateTime creationDate)
   at Microsoft.TeamFoundation.WorkItemTracking.Server.NotificationFilter.RemoveRestrictedContent(TeamFoundationRequestContext requestContext, String server, TeamFoundationIdentity[] userIdentities, XmlDocument eventCopy, Restriction[]& restrictions)
   at Microsoft.TeamFoundation.JobService.Extensions.Core.NotificationJobExtension.FilterNotification(TeamFoundationRequestContext requestContext, TeamFoundationIdentity subscriber, IEnumerable`1 filters, TeamFoundationNotification notification)

如此处所述,我检查了安全设置->本地策略->安全选项->“系统加密:使用符合 FIPS 的加密、散列和签名算法”值的本地安全策略,并且它已经设置为禁用

4

1 回答 1

0

重新启动Visual Studio Team Foundation 后台作业代理服务为我修复了这个特定错误。

于 2013-08-05T04:56:08.737 回答