Running the Microsoft .NET C# Version of SimpleClient The SimpleClient sample application connects to a vSphere host, lists the names and reference IDs of the managed objects in the inventory, and disconnects from the host. Run the SimpleClient C# application You can use the SimpleClient sample application to test your setup and connectivity. Prerequisites To Run the SimpleClient C# Application Verify that the following conditions exist: ■ Your development environment is set up. See Setting Up for C# Development. ■ The SSO DLL is built. See Building the C# SSO DLL. ■ The vSphere DLLs are built. See Building the C# vSphere DLLs. To run the SimpleClient application 1 Open a Visual Studio Tools command shell. 2 Navigate to the subdirectory where the compiled object code is located. From the top-level directory of the SDK download, the directory is as follows: %WS_SDK_HOME%\dotnet\cs\samples\SimpleClient\bin\Debug 3 Run the application, passing at least the service URL, an authenticating user name, and a password on the command line. For a development environment, you do not need to use SSO or certificate authentication. You can authenticate directly with the server by specifying --disablesso and --ignorecert on the command line. For example: simpleclient --url https://esx.exampledomain.com/sdk --username root --password secret --disablesso --ignorecert The application connects to the server and displays a list of inventory objects managed by the server. Example: Sample Output of a Successful Run of SimpleClient Object Type : Datacenter Reference Value : ha-datacenter Property Name : name Property Value : ha-datacenter Object Type : Folder Reference Value : ha-folder-root Property Name : name Property Value : ha-folder-root