Submit a ticketCall us

AnnouncementsCome see SolarWinds at VMUG Frankfurt

SolarWinds is delighted to attend the upcoming VMUG which will take place at Kap Europa in Frankfurt on June 19th, 2018.

See event details.

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: 1,612 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

Tags

Classifications

Public