Community discussion forum

How to convert C# Application to Windows Service

  • 8 months ago
    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
  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 8 months ago

    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.

Post a reply

Enter your message below

Sign in or Join us (it's free).