Results 1 to 3 of 3

Thread: Cannot open file (R.O.) in a QtService

  1. #1
    Join Date
    Mar 2010
    Location
    Belgium
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Cannot open file (R.O.) in a QtService

    I have built a simple Qt service. It works fine on Windows XP but fails on Windows 7 x64 and Windows Server 2008 R2 x64. (I guess it should fail with any Windows version >= 6.0.)

    The system cannot find the path specified. C:/Windows/system32/ssl/client-key.pem

    Of course, this file exists. I am opening it in "read only" mode.

    Does anyone have any idea ?

    Many thanks in advance.

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Cannot open file (R.O.) in a QtService

    IMHO your service should have administrative permissions to access file in system32 tree.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  3. #3
    Join Date
    Mar 2010
    Location
    Belgium
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cannot open file (R.O.) in a QtService

    That is what I expected.

    System (user), Administrators (group), and Users (group) are allowed to access the folder and its files, at least for reading.
    I tried to install and start the service as Local System (default), Local Service, Network Service, Administrator, adjusting folder/files permissions accordingly but the same failure occurs.

    Running service (with "-e" parameter) works with no problem.

Similar Threads

  1. Replies: 1
    Last Post: 23rd May 2011, 04:53
  2. Replies: 1
    Last Post: 8th November 2010, 03:24
  3. Replies: 3
    Last Post: 1st November 2010, 16:33
  4. Replies: 5
    Last Post: 15th June 2010, 07:42
  5. Replies: 4
    Last Post: 9th May 2010, 16:18

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.