<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Errors 22002 and 22003 with VixHost_Connect() in VIX API Discussions</title>
    <link>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813289#M1040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On your build machine, you have installed VIX package. On your test machine, you didn't install VIX package. You should install VIX package on your test machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="jive-quote"&gt;&lt;P&gt;&lt;BR /&gt;Feb 03 18:38:42.752: app-3892| Error: VIX wrapper config file (null)\vixwrapper-config.txt not found.&lt;BR /&gt;Feb 03 18:38:42.752: app-3892| Failed to load wrapper configuration file&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Since VIX Package is not installed, it didn't find config file (metadata for properly loading libraries]). Please install VIX on your test machine and post if you find any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 02:32:08 GMT</pubDate>
    <dc:creator>stanguturi</dc:creator>
    <dc:date>2010-02-04T02:32:08Z</dc:date>
    <item>
      <title>Errors 22002 and 22003 with VixHost_Connect()</title>
      <link>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813288#M1039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting started working with the vmware API's. I wrote a c++ tool that calls them.  It is working fine on my build machine with both VMware Workstation and our ESX server. However when I copy the tool to a test machine that has VMware Player installed, I can't get either player or the esx server working. Is there something additional I have to install on my test box to get this working? Is there something else that I have to change in my linker settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build system:&lt;/P&gt;&lt;P&gt;Windows 7&lt;/P&gt;&lt;P&gt;VIX 1.8.1.10141&lt;/P&gt;&lt;P&gt;VMware Workstation 6.5.1.5078&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test system:&lt;/P&gt;&lt;P&gt;Windows XP SP2&lt;/P&gt;&lt;P&gt;Vmware Player 3.0.0.9911 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESX Server:&lt;/P&gt;&lt;P&gt;VMWare ESX Server 3i, 3.5.0, 111522&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;m_ConnType = VIX_SERVICEPROVIDER_DEFAULT;&lt;/P&gt;&lt;P&gt;m_jobHandle = VixHost_Connect(VIX_API_VERSION, m_ConnType, W2A(lpsHostName), 0, W2A(lpsHostUser) , W2A(lpsHostPassword), 0, VIX_INVALID_HANDLE, NULL, NULL);&lt;/P&gt;&lt;P&gt;m_err = VixJob_Wait(m_jobHandle, VIX_PROPERTY_JOB_RESULT_HANDLE, &amp;amp;m_hostHandle, VIX_PROPERTY_NONE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime results:&lt;/P&gt;&lt;P&gt;Build machine: Both workstation and esx server work fine.&lt;/P&gt;&lt;P&gt;Test machine with esx server: Error 22002 – VIX_E_WRAPPER_VERSION_NOT_FOUND&lt;/P&gt;&lt;P&gt;    The specified version was not found.&lt;/P&gt;&lt;P&gt;Test machine with Player: Error 22003 – VIX_E_WRAPPER_SERVICEPROVIDER_NOT_FOUND&lt;/P&gt;&lt;P&gt;    The specified service provider was not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried setting the connection type to either VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, VIX_SERVICEPROVIDER_VMWARE_WORKSTATION, or VIX_SERVICEPROVIDER_VMWARE_PLAYER, but the same error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test machine Log File:&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| Log for VixWrapper pid=3876 version=1 build=build-207905 option=Release&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| The process is 32-bit.&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| Host codepage=windows-1252 encoding=windows-1252&lt;/P&gt;&lt;P&gt;LOG NOT INITIALIZED | W32Util_IsDirectorySafe: Failed DACL num entries check, "..."&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| Error: VIX wrapper config file (null)\vixwrapper-config.txt not found.&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| Failed to load wrapper configuration file&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws-5\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws-3\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws-3\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\ws-2\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| config points to non-existent implementation library '(null)\server-1\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| Player installed version is 3.0.0&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| No implementation found for service provider 4, apiVersion -1 installedVersion 3.0.0&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| No Vix library found for provider 4 revision -1&lt;/P&gt;&lt;P&gt;Feb 03 18:38:42.752: app-3892| No implementation libraries loaded, cannot call 'VixJob_OnFinishAsynchOpWithHandle'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build machine log file:&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.747: app-4260| Log for VixWrapper pid=4496 version=1 build=build-207905 option=Release&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.747: app-4260| The process is 32-bit.&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.747: app-4260| Host codepage=windows-1252 encoding=windows-1252&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.747: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.748: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.748: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.748: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.768: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.768: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.768: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.768: app-4260| config points to non-existent implementation library 'C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;ws_server_esx-4\32bit\vix.dll'&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.769: app-4260| passed in VIX_SERVICEPROVIDER_DEFAULT, computed hostType as 10&lt;/P&gt;&lt;P&gt;Feb 03 19:47:24.769: app-4260| Loading Vix implementation library C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;VIServer-2.0.0\32bit\vix.dll&lt;/P&gt;&lt;P&gt;Feb 03 19:47:25.276: app-4260| unable to load func VixVM_AddRollingTier from library C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;VIServer-2.0.0\32bit\vix.dll (127)&lt;/P&gt;&lt;P&gt;Feb 03 19:47:25.276: app-4260| unable to load func VixVM_RemoveRollingTier from library C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;VIServer-2.0.0\32bit\vix.dll (127)&lt;/P&gt;&lt;P&gt;Feb 03 19:47:25.276: app-4260| unable to load func VixVM_ListRollingTier from library C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;VIServer-2.0.0\32bit\vix.dll (127)&lt;/P&gt;&lt;P&gt;Feb 03 19:47:25.276: app-4260| unable to load func VixHost_OpenVM from library C:\Program Files (x86)\VMware\VMware VIX&lt;BR /&gt;VIServer-2.0.0\32bit\vix.dll (127)&lt;/P&gt;&lt;P&gt;Feb 03 19:47:29.021: app-4260| No such function 'VixHost_OpenVM' for version 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 02:24:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813288#M1039</guid>
      <dc:creator>kublikhan</dc:creator>
      <dc:date>2010-02-04T02:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Errors 22002 and 22003 with VixHost_Connect()</title>
      <link>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813289#M1040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On your build machine, you have installed VIX package. On your test machine, you didn't install VIX package. You should install VIX package on your test machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="jive-quote"&gt;&lt;P&gt;&lt;BR /&gt;Feb 03 18:38:42.752: app-3892| Error: VIX wrapper config file (null)\vixwrapper-config.txt not found.&lt;BR /&gt;Feb 03 18:38:42.752: app-3892| Failed to load wrapper configuration file&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Since VIX Package is not installed, it didn't find config file (metadata for properly loading libraries]). Please install VIX on your test machine and post if you find any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 02:32:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813289#M1040</guid>
      <dc:creator>stanguturi</dc:creator>
      <dc:date>2010-02-04T02:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Errors 22002 and 22003 with VixHost_Connect()</title>
      <link>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813290#M1041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After installing VIX on my test machine the problem went away. Thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I misread the documentation. I thought player came with vix, but the doc says only workstation and server install vix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 03:26:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813290#M1041</guid>
      <dc:creator>kublikhan</dc:creator>
      <dc:date>2010-02-04T03:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Errors 22002 and 22003 with VixHost_Connect()</title>
      <link>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813291#M1042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i've experianced the same issue , but i think there is somthing that i am missing here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the steps that i've done :&lt;/P&gt;&lt;P&gt;1 . install the vmware vix API over my local machine (nothing special here) got only some asseblies and several code example&lt;/P&gt;&lt;P&gt;2. created a c++ project over VS2017&amp;nbsp; i've used the &lt;SPAN style="color: #000000; font-family: monospace; font-size: 12px;"&gt;VixAllProductsDyn.dll &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: 12px;"&gt;2.1 - project complies and runs without but VixHost_Connect failes to connect with error code 22003&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code sample&lt;/P&gt;&lt;P&gt;VixError err;&lt;/P&gt;&lt;P&gt;char *vmxPath;&lt;/P&gt;&lt;P&gt;VixHandle hostHandle = VIX_INVALID_HANDLE;&lt;/P&gt;&lt;P&gt;VixHandle jobHandle = VIX_INVALID_HANDLE;&lt;/P&gt;&lt;P&gt;VixHandle vmHandle = VIX_INVALID_HANDLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jobHandle = VixHost_Connect(VIX_API_VERSION,&lt;/P&gt;&lt;P&gt;//VIX_SERVICEPROVIDER_DEFAULT,&lt;/P&gt;&lt;P&gt;VIX_SERVICEPROVIDER_VMWARE_VI_SERVER,&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;THE_VC_IP_ADDRESS&lt;/STRONG&gt;", // *hostName,&lt;/P&gt;&lt;P&gt;0, // hostPort,&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;THE_VC_USER_NAME&lt;/STRONG&gt;", // *userName,&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;THE_VC_PASSWORD&lt;/STRONG&gt;", // *password,&lt;/P&gt;&lt;P&gt;0, // options,&lt;/P&gt;&lt;P&gt;VIX_INVALID_HANDLE, // propertyListHandle,&lt;/P&gt;&lt;P&gt;NULL, // *callbackProc,&lt;/P&gt;&lt;P&gt;NULL); // *clientData);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;err = VixJob_Wait(jobHandle,&lt;/P&gt;&lt;P&gt;VIX_PROPERTY_JOB_RESULT_HANDLE,&lt;/P&gt;&lt;P&gt;&amp;amp;hostHandle,&lt;/P&gt;&lt;P&gt;VIX_PROPERTY_NONE);&lt;/P&gt;&lt;P&gt;if (VIX_FAILED(err)) {&lt;/P&gt;&lt;P&gt;std::cout &amp;lt;&amp;lt; "connection failed " &amp;lt;&amp;lt; err; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont believe i need to install the VIX over my VC &lt;/P&gt;&lt;P&gt;am i missing somthing ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:05:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VIX-API-Discussions/Errors-22002-and-22003-with-VixHost-Connect/m-p/813291#M1042</guid>
      <dc:creator>assafk</dc:creator>
      <dc:date>2019-10-07T14:05:17Z</dc:date>
    </item>
  </channel>
</rss>

