Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

Cannot execute sampes for C# SDK 5.5

$
0
0

Hello Guys,

 

I'm trying to execute SimpleClient or RealTime program but I get bunch of exeptions. For example when I run SimpleClient with this command:

SimpleClient --url Https://192.168.xxx.xxx/sdk --username administrator@vsphere.local --password somepassword --disablesso

I get following  exceptions:

 

[ 2014-09-11 20:17:09 ] Begin Log.

Started

Caught Exception :  Name : WebException Message : Połączenie podstawowe zostało zakończone: Nie można ustanowić relacji

zaufania dla bezpiecznego kanału SSL/TLS. Trace :    w System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(We

bRequest request)

   w System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)

   w Microsoft.Web.Services3.WebServicesClientProtocol.GetResponse(WebRequest request, IAsyncResult result)

   w System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   w Vim25Api.VimService.RetrieveServiceContent(ManagedObjectReference _this)

   w AppUtil.SvcConnection.Connect(String url, String username, String password) w c:\WS\SDK\vsphere-ws\dotnet\cs\sample

s\AppUtil\SvcConnection.cs:wiersz 88

   w AppUtil.ServiceUtil.ClientConnectDeprecated() w c:\WS\SDK\vsphere-ws\dotnet\cs\samples\AppUtil\ServiceUtil.cs:wiers

z 95

Exception running : SimpleClient

Caught Exception :  Name : WebException Message : Połączenie podstawowe zostało zakończone: Nie można ustanowić relacji

zaufania dla bezpiecznego kanału SSL/TLS. Trace :    w AppUtil.ServiceUtil.ClientConnectDeprecated() w c:\WS\SDK\vsphere

-ws\dotnet\cs\samples\AppUtil\ServiceUtil.cs:wiersz 107

   w AppUtil.ServiceUtil.ClientConnect() w c:\WS\SDK\vsphere-ws\dotnet\cs\samples\AppUtil\ServiceUtil.cs:wiersz 37

   w AppUtil.AppUtil.connect() w c:\WS\SDK\vsphere-ws\dotnet\cs\samples\AppUtil\AppUtil.cs:wiersz 656

[ 2014-09-11 20:17:14 ] End Log.

 

Caught Exception :  Name : WebException Message : Połączenie podstawowe zostało zakończone: Nie można ustanowić relacji

zaufania dla bezpiecznego kanału SSL/TLS. Trace :    w AppUtil.AppUtil.connect() w c:\WS\SDK\vsphere-ws\dotnet\cs\sample

s\AppUtil\AppUtil.cs:wiersz 665

   w SimpleClient.SimpleClient.Main(String[] args) w c:\WS\SDK\vsphere-ws\dotnet\cs\samples\SimpleClient\SimpleClient.cs

:wiersz 209

 

I've also tried to login with ssourl but still no effect, however stack trace is different.

 

I've got Polish language pack for my visual studio. Please let me know if something is not clear and I have to translate something or provide more information

 

regards,

Xaosthetic


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>