Submit a ticketCall us

Announcing NCM 7.7
With NCM 7.7, you can examine the rules that make up an access control list for a Cisco ASA device. Then you can apply filters to display only rules that meet the specified criteria, order the rules by line number or by the hit count, and much more.
See new features and improvements.

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: 174 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