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. WIndows Service in Windows Form

WIndows Service in Windows Form

Scheduled Pinned Locked Moved C#
debugginghelp
4 Posts 2 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.
  • I Offline
    I Offline
    idreesbadshah
    wrote on last edited by
    #1

    I have created a widows service,register it and it is working fine. Now i have created Windows application.RIght Click the solution and click add new item.I have added windows service compiled code and register using "installutil C:\mcWebService\bin\Debug\windowsapplication1.exe" Now when i go to computer->manage->services and start service it gives following error "Error: 1053 the service did not respond to the start or control request in timly fashion" any body has solution for this

    P 1 Reply Last reply
    0
    • I idreesbadshah

      I have created a widows service,register it and it is working fine. Now i have created Windows application.RIght Click the solution and click add new item.I have added windows service compiled code and register using "installutil C:\mcWebService\bin\Debug\windowsapplication1.exe" Now when i go to computer->manage->services and start service it gives following error "Error: 1053 the service did not respond to the start or control request in timly fashion" any body has solution for this

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      installutil is for Windows Services, not Windows Applications.

      I 1 Reply Last reply
      0
      • P PIEBALDconsult

        installutil is for Windows Services, not Windows Applications.

        I Offline
        I Offline
        idreesbadshah
        wrote on last edited by
        #3

        Then when we create windows aplication and right click to add new item and add windows service class then how this windows service will run

        P 1 Reply Last reply
        0
        • I idreesbadshah

          Then when we create windows aplication and right click to add new item and add windows service class then how this windows service will run

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          You either want a Windows Application or a Windows Service, you can't have something that's both. If you want both and want them to interact, you'll need to create your own way to do that. What are you trying to do?

          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