Results 1 to 6 of 6

Thread: Windows service on Windows Server 2003

  1. #1

    Thread Starter
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Windows service on Windows Server 2003

    Hi,

    I need to run my application with UI as interactive windows
    service (with "Allow service to interact with desktop" and "Local
    System Account" checked in service's properties)
    Works expectedly on Windows 2000, but not on Windows Server 2003 - UI is
    invisible.

    Need help.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Windows service on Windows Server 2003

    Is it possible the UI is "off the screen"? What is the video resolution of the 2003 server? Maybe kick it up to check. Also, when you expect the prog is running, hit ALT+SPACE. Then hit M. If the UI is up somewhere, your cursor should turn into a cross with arrows. Then, use your arrow keys to shift the prog up and to the left.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3

    Thread Starter
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: Windows service on Windows Server 2003

    Quote Originally Posted by Dave Sell
    Is it possible the UI is "off the screen"?
    No that is not the case. It even doesn't shows system tray icon. Why this is happening in Win Server 2003

    Thanks for replying.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Windows service on Windows Server 2003

    How did you create your service? Ocx, all API, or ???
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: Windows service on Windows Server 2003

    Hi Rob
    I first created a Standard EXE Project and used this tool to convert my exe to windows service that allows desktop interaction. I want to say again that, This service is working absolutely fine on windows 2000 Professional but not on Windows server 2003. It doesn't shows any interface even though the "Allow service to interact with desktop" is checked.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Windows service on Windows Server 2003

    I would have to say that it must be something that that guys program does or
    isnt doing when it converts your project to a service.

    I know this may sould difficult but you may need to re-write it as a real nt
    service using APIs. Search for OpenSCManager and my username. I have
    some posts on how to do it.

    Also, try StartService service.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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