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. C#
  4. Problem with operating system.

Problem with operating system.

Scheduled Pinned Locked Moved C#
helpsysadminwindows-admin
8 Posts 3 Posters 0 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.
  • J Offline
    J Offline
    justintimberlake
    wrote on last edited by
    #1

    I have windows service which starts a process using System.diagonist.Process.Start(process name); I have the service interact with desktop and it works fine when tested on windows xp 2002(service pack 2). i.e the service invokes the process. But when I install the same service on windows server 2003 the process doest starts. I am very confused why this is happening can u plz help me.

    A 1 Reply Last reply
    0
    • J justintimberlake

      I have windows service which starts a process using System.diagonist.Process.Start(process name); I have the service interact with desktop and it works fine when tested on windows xp 2002(service pack 2). i.e the service invokes the process. But when I install the same service on windows server 2003 the process doest starts. I am very confused why this is happening can u plz help me.

      A Offline
      A Offline
      andre_swnpl
      wrote on last edited by
      #2

      justintimberlake wrote:

      I have the service interact with desktop

      This is probably why. Interacting with the desktop requires a user to be logged on. With XP this is not a problem as xp also requires a user for most operations, whereas windows server 2003 do not. Hope this helps you a bit.

      J 1 Reply Last reply
      0
      • A andre_swnpl

        justintimberlake wrote:

        I have the service interact with desktop

        This is probably why. Interacting with the desktop requires a user to be logged on. With XP this is not a problem as xp also requires a user for most operations, whereas windows server 2003 do not. Hope this helps you a bit.

        J Offline
        J Offline
        justintimberlake
        wrote on last edited by
        #3

        thanx very much for your response. but still is there any solution. or is it impossible

        L 1 Reply Last reply
        0
        • J justintimberlake

          thanx very much for your response. but still is there any solution. or is it impossible

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          I think you can have the process run under a specific user account; this requires your code to provide username and password to the appropriate ProcessStartInfo members in Process.StartInfo (if you are willing to provide those in your code, it looks like a security risk...) Also, you should log the complete Exception.ToString() that must occur right now when it fails to run on Windows Server; it probably tells you exactly what is failing. :)

          Luc Pattyn [My Articles] [Forum Guidelines]

          J 1 Reply Last reply
          0
          • L Luc Pattyn

            I think you can have the process run under a specific user account; this requires your code to provide username and password to the appropriate ProcessStartInfo members in Process.StartInfo (if you are willing to provide those in your code, it looks like a security risk...) Also, you should log the complete Exception.ToString() that must occur right now when it fails to run on Windows Server; it probably tells you exactly what is failing. :)

            Luc Pattyn [My Articles] [Forum Guidelines]

            J Offline
            J Offline
            justintimberlake
            wrote on last edited by
            #5

            well i did that but still no help !!!

            L 1 Reply Last reply
            0
            • J justintimberlake

              well i did that but still no help !!!

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              Either Process.Start fails and produces an Exception, or the process starts and maybe exits due to some error condition. Which is it, and what exception/error occurs ? :)

              Luc Pattyn [My Articles] [Forum Guidelines]

              J 1 Reply Last reply
              0
              • L Luc Pattyn

                Either Process.Start fails and produces an Exception, or the process starts and maybe exits due to some error condition. Which is it, and what exception/error occurs ? :)

                Luc Pattyn [My Articles] [Forum Guidelines]

                J Offline
                J Offline
                justintimberlake
                wrote on last edited by
                #7

                i get process starts only in the back ground

                J 1 Reply Last reply
                0
                • J justintimberlake

                  i get process starts only in the back ground

                  J Offline
                  J Offline
                  justintimberlake
                  wrote on last edited by
                  #8

                  in xp 2002 it starts in forground as well

                  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