Platinum Sponsors
Archives

My first vCloud App “Hello Org” part#1

Last night I managed to get my first vCloud .net app working. To get started I took one of the simple examples contained with the vCloud .Net SDK and copied aspects of it test what could be done. I imported the 2 DLLs (VcloudSDK_V5_1.dll, VcloudRestSchema_V5_1.dll) as needed and added the correct the using statements:

using System.Net;
using com.vmware.vcloud.sdk;
using com.vmware.vcloud.sdk.admin;
using com.vmware.vcloud.sdk.utility;
using com.vmware.vcloud.api.rest.schema;
using System.Security.Cryptography.X509Certificates;

After handling the certificate issue next I initiated a connection but received a failure:

Could not load file or assembly ‘System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.

After messing around with .Net versions I decided to switch from using Visual Studio 2010 to 2012. This seems to cured my program. In a follow up post I will walk through how to do what I achieved with this app step-by-step.

Leave a Reply

Gold Sponsors
Silver Sponsor