Exchange data trough USB

Hello,

I want to exchange data between pocket pc and desktop pc via USB. This works ok but now I want to integrate it into a windows service. When i try to connect to the ppc in the Windows Service I get the message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

I found a lot of things on google but nothing changed ...



Answer this question

Exchange data trough USB

  • MarkNyats

    It worked as a desktop application, now i want it to run as service so I converted it into a service.
    Now the terminal can't connect with the desktop. Active sync is running OK, but on RAPI.connect i get an error message: Access is denied,. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) while the aspnet user is added with full control


  • e.henriquez

    Fille wrote:
    There's a timer which tries to connect via USB to a pocketpc (using active sync). The code is correct because it works in a windows application.

    right, but you said you went from an app to a service, right when you install the service, is the correct user, and pwd, used in the "Log On" tab of the service Either a logged-in user, or the system account, typically ...


  • Dean2650

    There's a timer which tries to connect via USB to a pocketpc (using active sync). The code is correct because it works in a windows application.
  • dbcuser

    Correct, i went from an app to a service. It's the system account, do I have to change it to logged in user How do I do that thx
  • Joshizzle

    Fille wrote:
    Correct, i went from an app to a service. It's the system account, do I have to change it to logged in user How do I do that thx

    stupid forum ate my reply.

    1. aspnet != nt system, keep in mind

    2. you said you gave aspnet full control -- over what

    3. try setting the service to the user under which you successfully connected as an app, just to debug that variable in the context of a service.


  • Looper_Kwok

    Fille wrote:

    It worked as a desktop application, now i want it to run as service so I converted it into a service.
    Now the terminal can't connect with the desktop. Active sync is running OK, but on RAPI.connect i get an error message: Access is denied,. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) while the aspnet user is added with full control

    what user context is the service running under


  • T Pedersen

    As app my user is administrator when I change this, nothing happens when the service start, nog eventlog warnings while i placed them
    I gave aspnet full control over my computer (com security from component services)


  • Exchange data trough USB