Forum Discussion
Photo_G_84660
Nimbostratus
Mar 21, 2007"Unable to cast object of type 'System.Object[]' to type 'iControl.LocalLBPoolMemberMemberSessionState[][]'."
Hi,
I'm trying to code a method to disable pool members in VB .NET (using the new iControl.dll, THANKS JOE!!!), and it appears (in the debugger) to properly present the [pool_names] string ...
Photo_G_84660
Nimbostratus
Mar 21, 2007Ok, I see now that I was not instantiating the session_states object correctly. Now, however, the set_session_enabled_state method has session_states underlined with squigglies, and it says:
"Value of type 'iControl.LocalLBPoolMemberMemberSessionState' cannot be converted to '1-dimensional array of 1-dimensional array of iControl.LocalLBPoolMemberMemberSessionState'."
Dim session_states As New iControl.LocalLBPoolMemberMemberSessionState
session_states.member = (member_list(0)(index))
session_states.session_state = status
m_interfaces.LocalLBPoolMember.set_session_enabled_state(pool_names, session_states)
Is this error ocurring because MemberSessionState[][] is an array of lists? If so, how do I get session_states into set_session_enabled_state(pool_names, session_states)?
Thanks again,
Scott H.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects