Die Foren-SW läuft ohne erkennbare Probleme. Sollte doch etwas nicht funktionieren, bitte gerne hier jederzeit melden und wir kümmern uns zeitnah darum. Danke!

Hilfe beim starten des SDK COM Samples Browser

Hilfe bei Problemen mit Installation & Benutzung des VMware ESX/ESXi Server 3.

Moderatoren: Dayworker, irix

Member
Beiträge: 4
Registriert: 05.07.2007, 16:42

Hilfe beim starten des SDK COM Samples Browser

Beitragvon steff0049 » 16.07.2007, 17:03

hi,

Ich brauche Hilfe beim Ausfuehren, des COM Sample Projects(Browser)

das ist die Fehlermeldung in Visualstudio:

Code: Alles auswählen

  'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'D:\SDK\samples_2_0\DotNet\cs\Browser\bin\Debug\Browser.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread '<No Name>' (0x1404) has exited with code 0 (0x0).
The thread 0x1188 has exited with code 0 (0x0).
The thread 0x1274 has exited with code 0 (0x0).
'Browser.vshost.exe' (Managed): Loaded 'D:\SDK\samples_2_0\DotNet\cs\Browser\bin\Debug\Browser.exe', Symbols loaded.
'Browser.vshost.exe' (Managed): Loaded 'D:\SDK\samples_2_0\DotNet\cs\Browser\bin\Debug\ClientUtils.dll', Symbols loaded.
The thread '<No Name>' (0x131c) has exited with code 0 (0x0).
The thread 0xf48 has exited with code 0 (0x0).
'Browser.vshost.exe' (Managed): Loaded 'D:\SDK\samples_2_0\DotNet\cs\Browser\bin\Debug\VimService2005.dll', No symbols loaded.
'Browser.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Browser.vshost.exe' (Managed): Loaded 'onifakdm', No symbols loaded.
A first chance exception of type 'System.UriFormatException' occurred in System.dll
A first chance exception of type 'System.UriFormatException' occurred in ClientUtils.dll
A first chance exception of type 'System.NullReferenceException' occurred in ClientUtils.dll
A first chance exception of type 'System.NullReferenceException' occurred in ClientUtils.dll
The thread '<No Name>' (0x15b0) has exited with code 0 (0x0).
The thread '<No Name>' (0x1180) has exited with code 0 (0x0).
The program '[4676] Browser.vshost.exe: Managed' has exited with code 0 (0x0).


und das in der Kommandozeile

Code: Alles auswählen

D:\SDK\samples_2_0\DotNet\cs\Browser\bin\Debug>Browser.exe https://<management-server>/sdk <user> <pass>
[ 7/13/2007 1:50:13 PM ] Begin Log.

Started Browser
Caught Exception :  Name : WebException Message : Unable to connect to the remote server Trace :
   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at VimApi.VimService.RetrieveServiceContent(ManagedObjectReference _this)
   at ClientUtils.SvcConnection.Connect(String url, String username, String password) in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\SvcConnection.cs:line 49
   at ClientUtils.ServiceUtil.ClientConnect() in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\ServiceUtil.cs:line 29

Exception running : Browser
Caught Exception :  Name : WebException Message : Unable to connect to the remote server Trace :
   at ClientUtils.ServiceUtil.ClientConnect() in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\ServiceUtil.cs:line 32
   at ClientUtils.ClientBase.Run(RunDelegate runDelegate) in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\ClientBase.cs:line 54
Caught Exception :  Name : NullReferenceException Message : Object reference not set to an instance of an object. Trace:
   at ClientUtils.SvcConnection.Disconnect() in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\SvcConnection.cs:line 106
   at ClientUtils.ServiceUtil.ClientDisconnect() in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\ServiceUtil.cs:line 41

Exception disconnecting.
Caught Exception :  Name : NullReferenceException Message : Object reference not set to an instance of an object. Trace:
   at ClientUtils.ServiceUtil.ClientDisconnect() in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\ServiceUtil.cs:line 44
   at ClientUtils.ClientBase.Run(RunDelegate runDelegate) in D:\SDK\samples_2_0\DotNet\cs\ClientUtils\ClientBase.cs:line 62
Ended Browser

[ 7/13/2007 1:51:28 PM ] End Log.


woran koennte dieser Fehler liegen?

Danke,
Steffi

Benutzeravatar
Moderator
Beiträge: 3476
Registriert: 23.02.2005, 09:14
Wohnort: Burgberg im Allgäu
Kontaktdaten:

Beitragvon Tschoergez » 16.07.2007, 17:38

Hi,

hab die COM-Api zwar selber noch nie ausprobiert, aber auf jeden Fall muss für den Zugriff auf die API der WebAccess auf dem VC-Server laufen.

Also mal in der Windows-Dienste Verwaltung schauen, ob der VMware WebAccess dienst läuft.

Außerdem ist die Kommunikation SSL-Verschlüsselt, evtl. müssen da noch Schlüssel importiert oder der VC-Server umkonfiguriert werden.
Infos dazu sollten im API-Quick-Start-Guide zu finden sein....

Für schnelle Erfolge in der API kann ich ansonsten das viperltoolkit empfehlen, dazu findet man auch einige Codeschnipsel hier im Forum bzw. unter www.run-virtual.com



Viele Grüße,
Jörg

Member
Beiträge: 4
Registriert: 05.07.2007, 16:42

Beitragvon steff0049 » 17.07.2007, 15:30

Danke fuer den Typ, die Idee mit VI Perltoolkit hatte ich auch schon. Nach einigen Huerden(vorallem Installation von SSLeay) hab ich es auch endlich geschafft es zu installieren und das Beispiel laeuft. :D (wer brauch schon COM ;) )

Member
Beiträge: 4
Registriert: 05.07.2007, 16:42

Fehler gefunden

Beitragvon steff0049 » 19.07.2007, 09:35

Ich hatte einen Proxy eingestellt und dadurch konnte sich das Programm nicht connecten.
Manchmal liegts eben an den einfachsten Sachen an die man nicht denkt.

Steff


Zurück zu „ESX 3 & ESXi 3“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste