Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello

I am looking for a solution to my little problem. I have various windows applications, all applications. I want to have a common windows service to provide some basic support to all these applications.
I am new to Windows Services, but I think a windows web service is solution to my problem.
Below is the detail I need to accomplish from a service:

1. Sending and fetching data from Web (like RSS etc)
2. Reading and writing database.

A service must have in and out parameters to interact with applications. Example, In parameters to pass the data from different application to a common service, out parameter to give some notification to calling form or on a particular event, it must be able to notify the form to show a form (It means my windows form must have a public function to receive notification).

I need to use VB.NET with Visual Studio Express Edition or may be Sharp develop with VB.NET, Kindly help me with any example or guidance to start working on the Windows Services.
Posted
Comments
Zoltán Zörgő 14-Dec-14 16:17pm    
Any progress? If you find my answer of use, feel free to accept it formally.

1 solution

This is not a "quick answers" kind of question. It seems, that you haven't tried anything on your own. This is now how it works here, we won't do your job. But here is some guidance:
1) VS Express has no Windows Service tempalte. SharpDevelop has. But VS is more convenient to use than SD. Simply add the empty Service in SD than open in in VS Express, and you have all that you need, since the rest is there, just the template is missing.
2) Here is a basic walktrough about Windows Services you can follow as a start: http://msdn.microsoft.com/en-us/library/zt39148a%28v=vs.110%29.aspx[^]
3) Bor all http traffic, you can use HttpClient[^]
4) There are many approaches to read RSS feeds, but you can start with this one: http://madskristensen.net/post/simple-rss-reader-class-in-c[^]
5) The database part is a compelx question. It depentd. Let's suppose you want SQL server as backed. In this case I suggest you use Entity Framework, than start here: http://www.entityframeworktutorial.net/[^]

But these are only some portions of what you will need to take care about. So I suggest you start reading and practicing and testing and debugging...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900