- 19 Jan 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
BizTalk360 Does Not Trigger Alerts; Exception in Event Log as "Cannot connect to WMI provider"
- Updated on 19 Jan 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Check the WMI Service is running
When you do not receive any notification alerts from BizTalk360, we recommend you to perform the following steps to check the health of BizTalk360 Monitoring service (also to see if there are any exception error messages) -
- Navigate to BizTalk360 Settings page
- Select BizTalk360 Health from left menu
- Select Monitoring Services Status
Verify if the monitoring service and its sub services are running without any exception error messages. If there are any exception messages, you will notice an eye icon. Clicking the icon will display the exception details.
Cause of the problem
There may be certain occasions when you see an exception (related to WMI service) such as:
Execute(Kovai.BizTalk360.InfoTrack.ActivitiesImpl.Throttling.ThrottlingActivityImpl). Fatal exception in Throttling Activity. Microsoft.BizTalk.SnapIn.Framework.FrameworkException: Cannot connect to WMI provider. Ensure that the WMI service is running. ---> System.Management.ManagementException: Out of memory at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementScope.InitializeGuts(Object o) at System.Management.ManagementScope.Initialize() at Microsoft.BizTalk.SnapIn.Framework.WmiProvider.get_ServerScope()
(or)
CollectThrottlingPerfoCounters(Kovai.BizTalk360.InfoTrack.ActivitiesImpl.Throttling.ThrottlingActivityImpl). Fatal exception in Throlling Collection Activity. System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action '1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action '1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
(or)
Execute(Kovai.BizTalk360.InfoTrack.ActivitiesImpl.Throttling.ThrottlingActivityImpl). Fatal exception in Throttling Activity. Microsoft.BizTalk.SnapIn.Framework.FrameworkException: Cannot connect to WMI provider. Ensure that the WMI service is running. ---> System.InvalidCastException: Unable to cast object of type 'System.IO.IOException' to type 'System.Management.IErrorInfo'. at System.StubHelpers.InterfaceMarshaler.ConvertToManaged(IntPtr pUnk, IntPtr itfMT, IntPtr classMT, Int32 flags) at System.Management.WbemErrorInfo.GetErrorInfo(Int32 reserved) at System.Management.WbemErrorInfo.GetErrorInfo()
Solution to the problem
You will encounter these exception messages if you have installed BizTalk360 on a stand-alone server, and this issue is related to the WMI service. Follow the steps as shown below to resolve this problem:
- Restart the WMI service in all BizTalk machines
- Restart the BizTalk360 monitoring service and wait for some time for the data collection process to happen
If you are using Windows Server 2008 R2 server, there are issues identified and Microsoft has released a KB article with the necessary information -
http://support.microsoft.com/kb/981314