Forum Discussion
cat_13700
Nimbostratus
Mar 17, 2010C# set_active_partition error
I have big plans for the dashboard I will write to display a constantly refreshing panel of all the member of all my pools. I thought I'd better start by getting the iControlApp (from the video) tuto...
Mar 17, 2010
If you are importing the WSDL files directly into Visual Studio, then you have to do some fun and games with the default URL that is specified. We make the URL in the WSDL files "http://url_to_service/iControl/iControlPortal.cgi" since we don't know (specifically in the standalone SDK) what the address of your BIG-IP is.
I would highly recommend you use the iControl Assembly for .Net that we release here on DevCentral. It makes writing code a snap. Just download the iControlAssembly.dll from the iControl Assembly labs project under the Labs menu on DevCentral.
Once you have that .dll on your system, in your project, select Add Reference and point to the iControlAssembly.dll.
Next add the System.Web and System.Web.Services assemblies as references as well.
Now all you need to do is create an iControl.Interfaces object, initialize it, and start making method calls.
iControl.Interfaces m_interfaces = new iControl.Interfaces();
bool bInitialized = m_interfaces.initialize("10.10.10.10", "admin_user", "admin_pass");
if ( bInitialized )
{
m_interfaces.ManagementUserManagement.get_my_permission();
m_interfaces.ManagementPartition.set_active_partition("Alpha");
}
I guarantee this will make your life easier by using our assembly. It will also allow you to upgrade easier in the future when we make new assemblies available and you won't have to go in and refresh your defined references.
Hope this helps...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
