Submit a ticketCall us

Quickly Address Software Vulnerabilities
Patch Manager is an intuitive patch management software which extends the capabilities of WSUS and SCCM to not only patch Windows® servers and workstations, and Microsoft® applications, but also other 3rd-party applications which are commonly exploited by hackers. Learn more about our patch management solution.

 

Home > Success Center > Network Performance Monitor (NPM) > Unable to cast object of type 'System.Byte[]' to type 'System.String'

Unable to cast object of type 'System.Byte[]' to type 'System.String'

Created by Malik Haider, last modified by MindTouch on Jun 23, 2016

Views: 51 Votes: 0 Revisions: 4

Overview

The following error message appears when trying to add an AD group in Orion:

Unable to cast object of type 'System.Byte[]' to type 'System.String'

 

The logs show the following error:

2014-05-08 11:48:19,449 [8] WARN  SolarWinds.Orion.Web.AuthorizationManager - Get All AD Groups of xxxxxx in LDAP://WRIT. System.Runtime.InteropServices.COMException (0x8000500C): Unknown error (0x8000500c)

   at System.DirectoryServices.PropertyValueCollection.PopulateList()

   at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)

   at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)

   at SolarWinds.Orion.Web.AuthorizationManager.WindowsAuthorizationManager.GetActiveDirectoryGroups(String identName, String domainName, Boolean& faulted)

2014-05-08 11:48:58,996 [5] ERROR SolarWinds.Orion.Web.AccountSearchHelper - Error occurred performing LDAP search in AccountSearchHelper. Exception: System.InvalidCastException: Unable to cast object of type 'System.Byte[]' to type 'System.String'.

   at SolarWinds.Orion.Web.AccountInfo..ctor(SearchResult searchResult)

   at SolarWinds.Orion.Web.AccountSearchHelper.SearchUsingLDAP(String patternToSearch, String domain, String sortDirection, Boolean isGroupSearch)

2014-05-08 11:48:58,996 [5] ERROR SolarWinds.Orion.Web.AccountSearchHelper - Error occurred performing search in AccountSearchHelper. Exception: Unable to cast object of type 'System.Byte[]' to type 'System.String'.

2014-05-08 11:48:58,996 [5] ERROR AccountManagement - Could not find account details on the specified domain.  Details: Unable to cast object of type 'System.Byte[]' to type 'System.String'.

Environment

NPM 10.7 and earlier

Cause 

There is a known Windows behavior that changed recently and this change also effected SolarWinds.

Resolution

 Kindly upgrade Orion to its latest version.

 

Last modified
23:49, 22 Jun 2016

Tags

Classifications

Public