Results 1 to 5 of 5

Thread: [RESOLVED] Windows Services

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    163

    Resolved [RESOLVED] Windows Services

    Hi everyone,

    I have written a windows service that is meant to launch a notepad when a specific action happens.

    The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible.

    I know that it has been launced because i can see the process in the task manager.

    By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).

    Does anyone know why the notepad does not become visible?

    Cheers,

    --Stav.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Windows Services

    Your service is not running under your user, so any programs it starts are not displayed on your user's desktop. Why would a Windows service run notepad anyway?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    163

    Re: Windows Services

    Hi and thanks for the reply,

    Actually what i am trying to do is run another application that i have written that displays an interface but that was not working either so i thought i should try with a simple notepad first and see if i could make that work.

    Do you have any suggestions on how to fix this issue?
    I have tried to make my service a user service but when i try to install it:

    If i set the user name and password to "nothing" i get prompted for them and then the installation fails
    If i set values to the user name and password (in the InitializeComponent) i get a message saying:
    "The trust relationship between this workstation and the primary domain failed"

    Again thanks for the reply,

    Cheers,

    --Stav.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Windows Services

    http://blogs.msdn.com/bclteam/archiv...15/396428.aspx

    Read the final caveat at the bottom.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    163

    Re: Windows Services

    Fantastic that worked!!!

    Thank you very much!!!

    --Stav.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width