How to Convert Windows Application in C# to Windows Service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skumardss
    New Member
    • Mar 2008
    • 2

    How to Convert Windows Application in C# to Windows Service

    Hi Techees...

    We have a Windows C# Application (Business Layer) which does communicate between the User Interface Layer and Data Layer. We need to convert this windows application to a Windows Service.

    We tried creating Windows Service Application in .NET framework and refered the dll of the Business Layer and then invoked the main method of the Busines Layer within the OnStart event of the Service Application. Once after doing this we were able to build the application with no errors. Then, when we tried to install the service using InstallUtil, it just displays "Sevice XXXXXX installing..." but hangs here without completing the isntallation.

    If any one has any suggestion, please post...

    Also, tell us if this is the right way to do the convertion to Windows Service or if there is any other better way?

    Thanks in advance,
    Kumar
  • balabaster
    Recognized Expert Contributor
    • Mar 2007
    • 798

    #2
    You have already posted this thread previously - please don't post the same thread multiple times!

    Comment

    Working...