Cannot install service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harshad

    Cannot install service

    Two questions.
    1) I followed Walkthrough of Win Service App. At the end, when I run Setup
    it complains about incorrect user and/or password. Where does it look for
    userid? I have logged in as Administrator.

    2) Why cannot I install the service with ServiceName.exe /install command as
    I do for non-dotNet service?

    --
    Thanks for your help.

    Harshad Rathod
    --
    Thanks for your help.

    Harshad Rathod
  • Ben Solomon

    #2
    RE: Cannot install service

    For Q2:
    The low-level answer would be that if you look in the code for a non-dot net
    Windows service (like Winmain/main) there's code that checks specifically
    for command line arguments like /Install and /Uninstall.
    There's no such code built in to the project template for in a .NET Windows
    service whatsoever from what I can tell. So that indirectly answers the
    question.

    For Q1:
    Don't know, but typically it's still a "permission " issue

    "Harshad" wrote:
    [color=blue]
    > Two questions.
    > 1) I followed Walkthrough of Win Service App. At the end, when I run Setup
    > it complains about incorrect user and/or password. Where does it look for
    > userid? I have logged in as Administrator.
    >
    > 2) Why cannot I install the service with ServiceName.exe /install command as
    > I do for non-dotNet service?
    >
    > --
    > Thanks for your help.
    >
    > Harshad Rathod
    > --
    > Thanks for your help.
    >
    > Harshad Rathod[/color]

    Comment

    • JXT

      #3
      RE: Cannot install service

      Try using the InstallUtil.exe . The .NET Framework uses this utility to
      install/uninstall Windows Services for .NET.

      "Harshad" wrote:
      [color=blue]
      > Two questions.
      > 1) I followed Walkthrough of Win Service App. At the end, when I run Setup
      > it complains about incorrect user and/or password. Where does it look for
      > userid? I have logged in as Administrator.
      >
      > 2) Why cannot I install the service with ServiceName.exe /install command as
      > I do for non-dotNet service?
      >
      > --
      > Thanks for your help.
      >
      > Harshad Rathod
      > --
      > Thanks for your help.
      >
      > Harshad Rathod[/color]

      Comment

      Working...