BizTalk ESB Exception Notification: The server is not operational.

I was looking at a Production BizTalk Server 2013 R2 when I noticed an error message firing of every 65 seconds for the BizTalk ESB Exception Notification, complaining that “The server in not operational” and the stack trace referencing some ldap\ActiveDirectory code.

Timestamp: 15/05/2020 12:00:49 a.m.
Message: HandlingInstanceID: b406acf5-f35e-40c7-a8de-4cead73a4c3a
An exception of type 'System.Runtime.InteropServices.COMException' occurred and was caught.

05/15/2020 12:00:49
Type : System.Runtime.InteropServices.COMException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : The server is not operational.

Source : System.DirectoryServices
Help link : 
ErrorCode : -2147016646
Data : System.Collections.ListDictionaryInternal
TargetSite : Void Bind(Boolean)
HResult : -2147016646
Stack Trace :    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
   at System.DirectoryServices.DirectorySearcher.FindOne()
   at Microsoft.Practices.ESB.AlertService.Ldap.ActiveDirectory.GetUserByLoginName(String loginName, DirectoryEntry parentContainer) in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\Ldap\ActiveDirectory.cs:line 116
   at Microsoft.Practices.ESB.AlertService.ActiveDirectoryHelper.GetEmailAddress(String name) in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\ActiveDirectoryHelper.cs:line 103
   at Microsoft.Practices.ESB.AlertService.QueueGenerator.AddEmailNotifications(String alertName, Guid newAlertHistoryID, Guid newBatchID, Emails emails, FaultsToQueueRow fault, AlertSubscriptionsRow alertSubscription, History historyDataSet) in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\QueueGenerator.cs:line 241
   at Microsoft.Practices.ESB.AlertService.QueueGenerator.ProcessFaultsForQueue(Guid newBatchID, Subscriptions subscriptions, Faults faults, Emails emails) in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\QueueGenerator.cs:line 185
   at Microsoft.Practices.ESB.AlertService.QueueGenerator.DoWork() in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\QueueGenerator.cs:line 48

Additional Info:

MachineName : SERVERNAME
TimeStamp : 15/05/2020 12:00:49 a.m.
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : BizTalk ESB Exception Notification.exe
ThreadIdentity : DOMAIN\ESBPortalAp
WindowsIdentity : DOMAIN\ESBPortalAp

Category: Default Category
Priority: 0
EventId: 100
Severity: Error
Title:Exception
Machine: SERVERNAME
Application Domain: BizTalk ESB Exception Notification.exe
Process Id: 37624
Process Name: C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit\Exception Notification Service\BizTalk ESB Exception Notification.exe
Win32 Thread Id: 51992
Thread Name: 

Restarting the BizTalk ESB Exception Notification Service gave a further clue, asking to Verify that the correct LDAP connection string is configured in the Fault Settings page of the ESB Management Portal.

Timestamp: 15/05/2020 12:09:12 a.m.
Message: HandlingInstanceID: 2b98c0d7-a212-43c6-b61b-c8b96aa1edf1
An exception of type 'Microsoft.Practices.ESB.AlertService.AlertException' occurred and was caught.
---------------------------------------------------------------------------------------------------
05/15/2020 12:09:12
Type : Microsoft.Practices.ESB.AlertService.AlertException, BizTalk ESB Exception Notification, Version=2.1.0.0, Culture=neutral, PublicKeyToken=a0c9e2135ff8e411
Message : A connection to Active Directory could not be established using the LDAP connection string: 'LDAP://LDAPSERVER'. Verify that the correct LDAP connection string is configured in the Fault Settings page of the ESB Management Portal. 
Source : BizTalk ESB Exception Notification
Help link : 
Data : System.Collections.ListDictionaryInternal
TargetSite : Void TestLDAPConnectivity(System.DirectoryServices.DirectoryEntry)
HResult : -2146233088
Stack Trace :    at Microsoft.Practices.ESB.AlertService.ActiveDirectoryHelper.TestLDAPConnectivity(DirectoryEntry entryToTest) in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\ActiveDirectoryHelper.cs:line 82
   at Microsoft.Practices.ESB.AlertService.ActiveDirectoryHelper.TestLDAPConnectivity() in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\ActiveDirectoryHelper.cs:line 47
   at Microsoft.Practices.ESB.AlertService.Process.OnStart(String[] args) in e:\Integration\Microsoft.Practices.ESB2.3\Management Portal\Main\ESB.AlertService\Process.cs:line 80

Additional Info:

MachineName : SERVERNAME
TimeStamp : 15/05/2020 12:09:12 a.m.
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : BizTalk ESB Exception Notification.exe
ThreadIdentity : DOMAIN\ESBPortalAp
WindowsIdentity : DOMAIN\ESBPortalAp

Category: Default Category
Priority: 0
EventId: 100
Severity: Error
Title:Exception
Machine: SERVERNAME
Application Domain: BizTalk ESB Exception Notification.exe
Process Id: 13820
Process Name: C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit\Exception Notification Service\BizTalk ESB Exception Notification.exe
Win32 Thread Id: 19592
Thread Name: 

LDAP is used by the BizTalk ESB Exception Notification to look up a user for an Alert to find their email address. As we override that using the Custom Email Address option, we weren’t actually using LDAP, so I’ve unticked the option in Admin -> Fault Settings for now, and the errors have stopped.

Author: Coen (Colin) Dijkgraaf

A Integration Consultant for Datacom in Auckland, New Zealand, working mainly with BizTalk and Azure. You can follow me on Twitter, StackOverflow and WordPress

2 thoughts on “BizTalk ESB Exception Notification: The server is not operational.”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.