We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

How to convert C# Application to Windows Service

Last post 03-26-2008 3:36 PM by NepBoss. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-25-2008 8:28 AM

    • skumardss
    • Not Ranked
    • Joined on 03-25-2008
    • India
    • New Member
    • Points 10

    How to convert C# Application 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 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
    • Post Points: 10
  • 03-26-2008 3:36 PM In reply to

    • NepBoss
    • Not Ranked
    • Joined on 02-22-2008
    • Germany
    • Junior Member
    • Points 120

    Re: How to convert C# Application to Windows Service

    Hi frens,

    First of all please don't mind that I write here to you directly.. I hope u can help me. As I am new in the c#...... I have a textbox where the user give his user name and password and try to connect. If the user is already registered to the databank, it should shows the datas in datagrid otherwiese it should not connect to the databank. how can I validate it... Please write me in detail..with code ...

    thanx in advance.

    Surya Giri
    Innomea GmbH
    Raifeisen str 5a
    63538
    Germany
    • Post Points: 5
Page 1 of 1 (2 items)