468,290 Members | 2,017 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

Converting Windows 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
Mar 25 '08 #1
2 2301
epots9
1,351 Expert 1GB
Moved to the .NET Forums where the resident experts can better assist you.

**Moved from Programming Challenges.
Mar 25 '08 #2
balabaster
797 Expert 512MB
Rather than a Windows Service, I would probably lean towards a Web Service... however, .Net Remoting may be an alternative you can consider. It really depends on how complex the environment is, and your strategy for accessing the data - and in some cases really comes down to personal preference. Web services are relatively simple to develop and consume and provide a lot of flexibility and I've yet to come across a situation where .Net Remoting could not be used as a replacement in principle. I personally wouldn't use a Windows Service as a data layer to my application - but that's just me. There are probably programmers out there that favour this method, but I can't think of a logical reason to use them rather than Web Services or .Net Remoting.
Mar 25 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by SP | last post: by
3 posts views Thread by Derek Martin | last post: by
23 posts views Thread by Reggie | last post: by
4 posts views Thread by tshad | last post: by
3 posts views Thread by =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.