lucadentella_55
Jan 18, 2011Nimbostratus
Get persistence records
Good afternoon,
I'm working on a management app for our Big-IP (BIG-IP 10.0.1 Build 378.0 Hotfix HF3) and I've some problems with a method that should get the number of persistence records for a given VirtualServer.
Here's the code I'm using:
string[] vservers = new string[1];
vservers[0] = "VS_Test";
LocalLBPersistenceMode[] modes = new LocalLBPersistenceMode[1];
modes[0] = LocalLBPersistenceMode.PERSISTENCE_MODE_NONE;
LocalLBPersistenceRecord[][] records = interfaces.LocalLBVirtualServer.get_persistence_record(vservers, modes);
The code compiles, but when I run my app I get the following exception:
Unhandled Exception: System.InvalidOperationException: There is an error in XML document (39, 51). ---> System.InvalidOperationException: Instance validation er ror: '' is not a valid value for CommonProtocolType.
If I run a similar command (bigip persist virtual VS_Test show) from a command line, it works fine.
I found an old post about a similar problem:
http://devcentral.f5.com/Forums/tabid/1082223/asg/51/showtab/groupforums/afv/topic/aff/1/aft/56693/Default.aspx
but the hotfix should be already present in newer versions...
Can you help me?
Thanks!