Skip to content
Documentation
Updated 8 minutes to read
Markdown
Release Notes

Troubleshooting the Windows Server Monitoring Agent

Section titled “Troubleshooting the Windows Server Monitoring Agent”

Quickly resolve common issues and get expert answers for the Nodinite Windows Server Monitoring Agent. This page provides step-by-step troubleshooting for access, WMI, IIS, and configuration problems, plus direct links to support and FAQs.

✅ Fast solutions for access denied, WMI, and IIS errors
✅ Clear, actionable steps for configuration and permissions
✅ Direct links to expert support and detailed user guides

If you have any issues that you can not solve, contact our Support, read more on the Support page.

If you see System.UnauthorizedAccessException: Access is denied in the diagnostic files, review the WMI access rights on the target server.

  1. Run wmimgmt.msc
  2. Connect to the target server (or do the operation locally on the target server).
    wmimgmt.msc MMC
    Example of the WMI Management Console (wmimgmt.msc) for WMI access rights management.
  3. Right-Click | Properties.
    Properties
    Example of the WMI Properties context menu.
  4. Select the Security tab.
    Security tab
    Example of the Security tab in the WMI Properties dialog.
  5. Click the Security button and make sure the account in use for the Nodinite Windows Server Monitoring Agent is present with appropriate permissions according to your needs and current configuration.
    Assign permissions
    Example of assigning permissions to the monitoring agent account.

Please review this specific user guide.

Please review this specific user guide.

To monitor IIS, ensure the agent has all the Prerequisites installed.

On Windows Server 2016 or earlier, the system has Microsoft.Web.Administration in Assembly version 7.0.0.0 which uses .NET Framework 2.0. The Agent ships with a much newer version.

In a Monitor View, the IIS resource is in the Unavailable state.

To solve this, follow the steps below:

  1. Stop the Agent.
  2. Remove the Microsoft.Web.Administration.dll file in the installation folder of the agent.
  3. Copy the Microsoft.Web.Administration.dll from C:\Windows\assembly\GAC_MSIL\Microsoft.Web.Administration\7.0.0.0__31bf3856ad364e35 folder to the installation folder of the Agent.
  4. Edit the Nodinite.MonitoringAgent.WindowsServerHost.exe.config file using Notepad++ and add the following assembly redirect section:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Web.Administration" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
</assemblyBinding>

In the Diagnostics file you may see entries like:

{"date":"2025-03-04T13:26:30.7430533+01:00","level":"ERROR","appname":"Nodinite.MonitoringAgent.WindowsServerHost.exe","logger":"IISHelper","thread":"16","ndc":"(null)","message":"An error occurred while getting Application pools on Server: 127.0.0.1","exception":"System.AggregateException: Cannot retrieve application pools. Exception: 'Object reference not set to an instance of an object.' ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Web.Administration.ConfigurationManager.CreateWritableAdminManager(WebConfigurationMap webConfigMap, String configPathToEdit, Boolean isAdminConfig, Boolean isRedirectionConfig) at Microsoft.Web.Administration.ConfigurationManager.CreateConfiguration(WebConfigurationMap configMap, String configPathToEdit, Boolean isAdminConfig, Boolean isRedirectionConfig) at Microsoft.Web.Administration.ConfigurationManager.GetConfiguration(String rawConfigurationPath, String cacheKey, Boolean isAdminConfig, Boolean isRedirectionConfig) at Microsoft.Web.Administration.ConfigurationManager.GetApplicationHostConfiguration() at Microsoft.Web.Administration.ServerManager.ApplicationPoolsSectionCreator() at Microsoft.Web.Administration.Lazy.Initialize[T](T& target, CreateInstanceDelegate`1 valueFactory) at Microsoft.Web.Administration.ServerManager.ApplicationPoolCollectionCreator() at Microsoft.Web.Administration.Lazy.Initialize[T](T& target, CreateInstanceDelegate`1
  • and/or
{"date":"2025-03-05T11:55:53.8845728+01:00","level":"ERROR","appname":"Nodinite.MonitoringAgent.WindowsServerHost.exe","logger":"IISHelper","thread":"14","ndc":"(null)","message":"Failed to get details about the Application Pools from the IIS Server: BizTalk 2016 Server- SERVERNAME","exception":"System.AggregateException: One or more errors occurred. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Web.Administration, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Nodinite.MonitoringAgent.WindowsServer.Helpers.IISHelper.GetInternetInformationService(String address) at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Nodinite.MonitoringAgent.WindowsServer.Helpers.IISHelper.<GetInternetInformationServiceAsync>d__12.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Nodinite.MonitoringAgent.WindowsServer.Helpers.IISHelper.GetApplicationPoolsAndsites(Task`1 iisTask, WindowsServerEntry windowsServer, DateTime startTime, List`1& appPools, List`1& WebSites, List`1& ftpSites)---> (Inner Exception #0) System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Web.Administration, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)File name: 'Microsoft.Web.Administration, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at Nodinite.MonitoringAgent.WindowsServer.Helpers.IISHelper.GetInternetInformationService(String address) at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Nodinite.MonitoringAgent.WindowsServer.Helpers.IISHelper.<GetInternetInformationServiceAsync>d__12.MoveNext()WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog].<---"}

If this is the case, you should try the assembly redirect option as documented on this page.

  1. Start the Agent.

How do I add Windows Server to monitor with Nodinite?

Section titled “How do I add Windows Server to monitor with Nodinite?”

Adding an arbitrary number of Windows Servers for Nodinite to monitor is a straightforward process and requires only proper access rights. Simply follow the steps detailed in the Configuration user guide.

How do I run custom PowerShell scripts as securely as possible?

Section titled “How do I run custom PowerShell scripts as securely as possible?”

Use a dedicated service account, grant least privilege, keep secrets out of the script body, and limit WinRM and firewall access to only the servers that need remote execution. For the full checklist, see How to run custom PowerShell scripts securely.

Configuration of the Windows Server Monitoring Agent

Windows Server Monitoring Agent Invalid Class
Invalid Namespace
Timeout or Connection Error
Support

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...