Connect to a 64bit server using a 32 bit API

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Connect to a 64bit server using a 32 bit API

      Hi there,

      How can I connect to a 64 bits Palo Server from a 32 bits API?

      I am using the code given in the help file:
      Connection c = new Connection("localhost", "7777", "admin", "admin");

      And I am getting a BadImage error, that usually is because I am connecting to 64 bits server using a 32 bits API, how do I get around that?

      Many thanks

      PlayKid
    • RE: Connect to a 64bit server using a 32 bit API

      I ran into the same problem when starting out with the PALO .NET samples. I'm running 64bit Win 7 and presume the error message comes about because the referenced Jedox.Palo.Comm.dll is 32bit as are the two C dlls that are in the same dir.

      Solution:
      - set the target platform to x86 on Project Properties | Build in VS
      - copy the two C dlls to a location in your path, eg C:\Windows\SysWOW64

      Re-run the project and you should see the text Jedox.Palo.Comm.ServerInfo in the console window

      I don't think there are any issues connection to a 64bit server from a 32bit client and vice-versa as the api is http-based