Submit a ticketCall us

WebinarUpcoming Webinar: How Help Desk and Remote Support Pays for Itself

Learn how help desk software can simplify ticketing management, allow you to track hardware and software assets, and accelerate the speed of IT support and service delivery. Gain insights on how remote support tools allow your IT team to maximize their efficiency and ticket resolution by expediting desktop troubleshooting, ultimately helping keep end-users happy and productive.

Register here.

Home > Success Center > IP Address Manager (IPAM) > IPAM - Knowledgebase Articles > Unable to scan Windows DHCP server with error: System.ArgumentNullException: Value cannot be null

Unable to scan Windows DHCP server with error: System.ArgumentNullException: Value cannot be null

Created by Jeremy Holmes, last modified by MindTouch on Jun 23, 2016

Views: 905 Votes: 0 Revisions: 7

Overview

This article addresses the following error that appears when attempting to scan a Windows DHCP server:

System.ArgumentNullException: Value cannot be null.

 

In the C:\programdata\solarwinds\logs\IPAM\jobs\IPAM.Collector.Jobs_[X].log you will find an error such as the following:

2016-05-24 06:39:38,118 [STP SmartThreadPool Thread #0] INFO  SolarWinds.IPAM.Jobs.DHCP.Factory.WindowsDhcpFactorySubJob - GetIpRanges(IPAddressofDHCP,IPAddressofScope,Available,...) = 1 items
2016-05-24 06:39:38,150 [STP SmartThreadPool Thread #0] ERROR SolarWinds.IPAM.Jobs.DHCP.Factory.WindowsDhcpFactorySubJob - Exception while trying to enumarete scopes in DHCP server 'IPAddressofScope'
System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
   at SolarWinds.IPAM.DHCP.Microsoft.DhcpViewer.ParseDhcpOptionBinaryValues(DHCP_OPTION_VALUE optionValue, DhcpOptions dhcpOptions)
   at SolarWinds.IPAM.DHCP.Microsoft.DhcpViewer.GetScopeDhcpOptions(IPAddress subnetAddress, List`1 optionsServerMeta)
   at SolarWinds.IPAM.Jobs.DHCP.DhcpDatasetHelper.AddScopeSettings(IPAddress subnetAddress, List`1 optionsServerMeta)
   at SolarWinds.IPAM.Jobs.DHCP.DhcpDatasetHelper.AddSubnet(IPAddress subnetip, List`1 optionsServerMeta)
   at SolarWinds.IPAM.Jobs.DHCP.Factory.WindowsDhcpFactorySubJob.DoDhcpServerSync(DhcpServerSyncScopeJobSettings settings, CredentialBase credBase, DhcpJobResults results)

Environment

IPAM 4.1 and later

Cause 

This occurs when one of the parameters in the scope is a null value. 

Resolution

  1. Add the Windows Remote Server Administration Tool. Refer to Installing or Removing the Remote Server Administration Tools Pack.
  2. Locate the Scope via the IPaddressofScope in the error from the IPAM.Collector.log file.
  3. Expand it to review the scope options.
  4. Locate the parameter with a null value and either fill it out or delete it. 
  5. Rescan the DHCP server in IPAM.
 

 

Last modified

Tags

Classifications

Public