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