XP 64 Problem - Unable to load rapi.dll

Last post 06-23-2009 21:35 by nestorf. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-25-2009 18:58

    • Paul_f
    • Not Ranked
    • Joined on 05-25-2009
    • Posts 1

    XP 64 Problem - Unable to load rapi.dll

    Hi

    I am having a problem using the OpenNETCF.Desktop.Communication on a XP 64 OS platform

    When my application attempts to create a RAPI object I get the following error

     System.DllNotFoundException: Unable to load DLL 'rapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
       at OpenNETCF.Desktop.Communication.RAPI.CeGetLastError()
       at OpenNETCF.Desktop.Communication.RAPIException..ctor(String Message)
       at OpenNETCF.Desktop.Communication.ActiveSync..ctor()
       at OpenNETCF.Desktop.Communication.RAPI..ctor()

    The PC has ActiveSync 4.5 installed. I have connected with a WM 5.0 device and confirmed everthing works by transferring a file using Windows Explorer.

    It seems as though the RAPI object is attempting to load the rapi.dll from the Windows\System32 directory instead of the Windows\Sys64Wow.

    Does anyone know how I could go about fixing this issue?

    Thanks

    Paul

     

     

     

  • 06-23-2009 21:35 In reply to

    Re: XP 64 Problem - Unable to load rapi.dll

    Hi Paul,

       you have to select project properties and change "platform target" from Any CPU to x86.

     

    Nes.

Page 1 of 1 (2 items)