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 Servce in windows application Problem

Windows Servce in windows application Problem

Scheduled Pinned Locked Moved C#
helpquestiondebugging
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 PIEBALDconsult answered me on this forum that installutil is for windows services not for windows application.Thanks for this reply but i want to know that in windows application when we right click on project and click on "Add new item".FRom here we can add windows service class .Now my question is how this added windows service class can be installed and run?

    A 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 PIEBALDconsult answered me on this forum that installutil is for windows services not for windows application.Thanks for this reply but i want to know that in windows application when we right click on project and click on "Add new item".FRom here we can add windows service class .Now my question is how this added windows service class can be installed and run?

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

      idreesbadshah wrote:

      windows service class can be installed and run

      This is done using installutil. You cannot mix a windows application and a windows service in a single install. Check out BOL for deployment, or Google for deploying .net applcations.

      Bob Ashfield Consultants Ltd

      I 1 Reply Last reply
      0
      • A Ashfield

        idreesbadshah wrote:

        windows service class can be installed and run

        This is done using installutil. You cannot mix a windows application and a windows service in a single install. Check out BOL for deployment, or Google for deploying .net applcations.

        Bob Ashfield Consultants Ltd

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

        Thanks for your Replly Just tell me one thing more.If we cannot mix windows apllication and windows services then why .net allow us in windows application to right click project and add windows service class.WHats it use there ifwe donot mix them.

        A 1 Reply Last reply
        0
        • I idreesbadshah

          Thanks for your Replly Just tell me one thing more.If we cannot mix windows apllication and windows services then why .net allow us in windows application to right click project and add windows service class.WHats it use there ifwe donot mix them.

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          idreesbadshah wrote:

          why .net allow us in windows application to right click project and add windows service class.WHats it use there ifwe donot mix them.

          I assume Microsoft expected people to have a little understanding of the about what they are doing. You can do all sorts of things in programming, just like life, and just because you CAN do something it doen't mean you SHOULD do it - you can put your fingers in a chainsaw, it doesn't mean to say you should.

          Bob Ashfield Consultants Ltd

          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