OpenNet problems

Discussion in 'Questions (Windows Mobile)' started by Lasse, May 20, 2007.

  1. Lasse

    Lasse Member Licensed User

    Hi again :)

    I am trying to connect a device to the computer and use the RAPI library.

    When I add the components Rapi.dll and OpenNETCF.Desktop.Communication.dll the error is taht I do not have permissions for the OpenNETCF.Desktop.Communication.dll.

    I start with the code:
    rapi.New1

    I assume it shoul work if the PDA is connected via Active Sync.

    Thanks!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you working from the desktop?
    You don't need to add the OpenNETCF.Desktop file. It should be copied to the folder of your source code.
     
  3. Lasse

    Lasse Member Licensed User

    Yes I'm working from the Desktop.

    If I don't add it I can compile an .EXE file but theres an error:
    Required Permissions cannot be acquiered.
     
  4. Lasse

    Lasse Member Licensed User

    It seems there are some different versions of the OpenNetCF.Desktop dll file.

    Now I can use it when running the debugger, but when compiled the OpenNetCF is in a invalid format ?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Did you copy the OpenNet to the folder of the compiled application?
     
  6. Lasse

    Lasse Member Licensed User

    Yes the compiled program is in the same folder as sbp file and the OpenNet, and rapi files are there as well.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    Attached is a working example (source code and compiled).
     

    Attached Files:

  8. Lasse

    Lasse Member Licensed User

    Works again

    Thank you for your help.

    Just to inform those who (like my self) didn't know, the problem was the security in the .NET setup.

    From the controlpanel you can set the security to the right level.

    Then it work like a charm !

    Thanks again for all your support!
     
Loading...