Forum Discussion
Apr 21, 2010
Ok, got a couple of replies to address so hopefully I get them all.
First of all, I hope if you are using C that you are making use of the iControl assembly for .NET (iControl.dll) that has all of our web services bundled up into a proxy client with a nice interface wrapper around them. If not, you can get it from the iControl Assembly Labs project. The benefit here is that you will externalize all your iControl code from your application so as new builds come out you can just upgrade the iControl.dll without having to rebuild your app.
Secondly, if you are using partitions, then you will likely need to set the active partition with the Management.Partition.set_active_partition() before making any object calls. By default, the iControl user is accessing the "Common" partition. If you want to programmatically determine the users's assigned partition, you can get that info from the Management.UserManagement.get_my_permission() method.
Management.Partition.set_active_partition()
http://devcentral.f5.com/wiki/default.aspx/iControl/Management__Partition__set_active_partition.html
Management.UserManagement.get_my_permission()
http://devcentral.f5.com/wiki/default.aspx/iControl/Management__UserManagement__get_my_permission.html
I illustrated the use of the partition control methods in my CodeShare sample on PsPartitionAccess. It's in PowerShell but the syntax should be pretty close to C.
http://devcentral.f5.com/wiki/default.aspx/iControl/PsPartitionAccess.html
Please let me know if this helps out or if you need further assistance.
-Joe