Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. CoInitialize permissions for windows service

CoInitialize permissions for windows service

Scheduled Pinned Locked Moved COM
comquestion
3 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rana74
    wrote on last edited by
    #1

    We have a windows service executing on a windows 2003 box as the 'LocalSystem' account. This service spawns off a executable. The executable in turn tries to create an instance of a COM object housed in a dll. However we find that in a particular host,the executable fails at the point where it tries to intialize COM through CoInitialize. We believe it is due to some permission violations on the box. What are the services/permissions to be in place for a windows service account to be able to invoke COM?

    R 1 Reply Last reply
    0
    • R rana74

      We have a windows service executing on a windows 2003 box as the 'LocalSystem' account. This service spawns off a executable. The executable in turn tries to create an instance of a COM object housed in a dll. However we find that in a particular host,the executable fails at the point where it tries to intialize COM through CoInitialize. We believe it is due to some permission violations on the box. What are the services/permissions to be in place for a windows service account to be able to invoke COM?

      R Offline
      R Offline
      rana74
      wrote on last edited by
      #2

      The problem is that the application does not even start executing a single line and returns with a file not found error ;however when the same application is executed from console(and not from a service as 'localsystem' account),it executes fine. But we found that when we comment off the 'CoInitiliazie' call then things seem fine for the application (though we obviously cannot invoke COM)

      V 1 Reply Last reply
      0
      • R rana74

        The problem is that the application does not even start executing a single line and returns with a file not found error ;however when the same application is executed from console(and not from a service as 'localsystem' account),it executes fine. But we found that when we comment off the 'CoInitiliazie' call then things seem fine for the application (though we obviously cannot invoke COM)

        V Offline
        V Offline
        vipin vjayan
        wrote on last edited by
        #3

        So were you able to figure out what was wrong with CoInitialize?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups