Hi,
I am trying to use the vCloud API to Upload an ovf file to the VDC and if my ovf contais the a Reference Tag then when trying the same operation the upload task is hung and eventually hangs out.
If i try the same operation with blank ovf ( no content in reference tag rest things are populated), the file getes uploaded properly to the server.
Has anyone else also faced the same issue with the when using ASP.NET vCloud API.
Here is the code that i am using:
Vdc vdc =null;
string ovflocation = null;
ReferenceType vdcStorage = null;
ReferenceType CatalogRef = null;
string path = null;
System.Windows.Forms.MessageBox.Show(path);
path = Path.GetDirectoryName(FileUpload1.PostedFile.FileName);
vdc = ImpCalls.getVdc(DropDownList1.SelectedValue);
ovflocation = FileUpload1.PostedFile.FileName;
vdcStorage = ImpCalls.getVdcStorageProfileRef(DropDownList1.SelectedValue, DropDownList3.SelectedValue);
CatalogRef = ImpCalls.getCatalogRef(DropDownList2.SelectedValue);
VappTemplate vapptemplateuploaded = vdc.UploadVappTemplate(TextBox1.Text, TextBox2.Text, ovflocation, false, vdcStorage, CatalogRef);
I have verified that all the values being passed to the method are correct.
Thanks
Deepak