我们有一台TFS 2012服务器,并尝试启用电子邮件提醒。但是,我们从未收到它们。
我已经设置了特定于我的帐户的团队提醒和提醒。在TFS管理控制台中配置SMTP设置时,我尝试将凭据留空,并使用我自己的凭据。两者都不起作用。
我还在C#中创建了一个简单的控制台应用程序,使用System.Net.Mail.SmtpClient
类来测试来自TFS服务器的有或没有我的凭据的电子邮件,它可以正常工作。
事件日志不会显示任何相关的错误消息。
如何解决并解决此问题?
使用此article中的信息,我能够从数据库作业历史记录表中提取以下错误消息。
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)
如上所述[{3}},我已检查本地安全政策以查看安全设置 - >本地政策 - >安全选项 - >“系统加密:使用FIPS用于加密,散列和签名“值的兼容算法,它已设置为已禁用。
答案 0 :(得分:0)
重新启动 Visual Studio Team Foundation后台作业代理服务为我修复了此特定错误。