Run application as a Service<p>What type of project it should be to run as a service?? </p> <p>Say if I create something and want to run it as a service how to do it and some of my other application has to use that service ?? how does that work ??</p>© 2009 Microsoft Corporation. Tutti i diritti riservati.Thu, 19 Jun 2008 00:15:52 Za25a34e5-87b9-41f1-b54d-82ebb6c3d750http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#a25a34e5-87b9-41f1-b54d-82ebb6c3d750http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#a25a34e5-87b9-41f1-b54d-82ebb6c3d750thukralzhttp://social.msdn.microsoft.com/Profile/it-IT/?user=thukralzRun application as a Service<p>What type of project it should be to run as a service?? </p> <p>Say if I create something and want to run it as a service how to do it and some of my other application has to use that service ?? how does that work ??</p>Tue, 16 Jan 2007 06:18:28 Z2007-01-17T04:32:34Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#9b51730b-6fc6-4b76-8b7d-ffdafa4d1061http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#9b51730b-6fc6-4b76-8b7d-ffdafa4d1061rauhanlinnakehttp://social.msdn.microsoft.com/Profile/it-IT/?user=rauhanlinnakeRun application as a ServiceIn Visual Studio 2005, there is a Windows Service Project template, which can be used to create Windows Services.<br>Tue, 16 Jan 2007 09:30:02 Z2007-01-17T04:32:13Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#b4368473-4cd4-4cb1-a7b3-8011b0421565http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#b4368473-4cd4-4cb1-a7b3-8011b0421565EricBrownhttp://social.msdn.microsoft.com/Profile/it-IT/?user=EricBrownRun application as a Service<br><br>you need a mechanism for the two apps to communcate... usually socket communication, but it can be as cheezy as app a writes c:\bob.xml., and then service a consumes it and deletes it.<br><br>Cal-<br><br><br>Tue, 16 Jan 2007 16:32:09 Z2007-01-16T16:32:09Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#4667c892-e5cc-43d5-a6ea-d808c9c61393http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#4667c892-e5cc-43d5-a6ea-d808c9c61393thukralzhttp://social.msdn.microsoft.com/Profile/it-IT/?user=thukralzRun application as a ServiceThis application is a WCF and I'm sure there will be better ways in .NET 3.0 to do stuff..Tue, 16 Jan 2007 16:39:52 Z2007-01-16T16:39:52Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#87f85138-c261-476d-beac-07a406d6a7d3http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#87f85138-c261-476d-beac-07a406d6a7d3Sean Hedermanhttp://social.msdn.microsoft.com/Profile/it-IT/?user=Sean%20HedermanRun application as a Service<p>Yes, so you'd create a Windows Service as rauhanlinnake said, and expose the WCF endpoints from this service.</p>Tue, 16 Jan 2007 17:27:46 Z2007-01-17T04:32:24Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#b32542ea-536f-4d4e-82ad-462ef1a855cehttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#b32542ea-536f-4d4e-82ad-462ef1a855cethukralzhttp://social.msdn.microsoft.com/Profile/it-IT/?user=thukralzRun application as a Service<p>I installed .NET 3.0 and WCF extension for Visual Studio and I have choices under .NET 3.0 is </p> <p>WCF Service Library (A project to define and implement a WCF service library)....Just confirming the project should be of this type..</p>Tue, 16 Jan 2007 17:53:18 Z2007-01-16T17:53:18Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#7143b9bd-e72a-452e-a9d0-4907833aed1fhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#7143b9bd-e72a-452e-a9d0-4907833aed1fSean Hedermanhttp://social.msdn.microsoft.com/Profile/it-IT/?user=Sean%20HedermanRun application as a Service<p>No, you want it to run as a service, so you would choose Windows Service. What you should do, is add the same references that WCF Service Library has. Alternatively you could create the WCF Service Library separate from the Windows Service, and just use it in the service. Either way, you will need Windows Service.</p>Tue, 16 Jan 2007 18:01:46 Z2007-01-16T18:01:46Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#68076abe-8271-47e8-90cd-bb5d7b2072bbhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#68076abe-8271-47e8-90cd-bb5d7b2072bbRizwanSharphttp://social.msdn.microsoft.com/Profile/it-IT/?user=RizwanSharpRun application as a Service<p>Neither Windows Services nor INter Process Communication is dependant on .Net 3.0, You can create such application on Windows 2000 or later.</p> <p>Windows Services just need an NT based Widows Version and everybody knows that all versions including Windows 2000 and above are based on NT Technlogy.</p> <p>You can Create a Windows Service in .Net 1X or later.</p> <p>You can also make many application communicate with each other at runtime using .Net remoting again this was available from .Net 1.X and later.</p> <p>So I dont know why these other guys have made it dependant on WCF?</p> <p>You can simply study about .Net remoting and you can develop a complete solution in .Net 2.0 too.</p> <p>Best Regards,</p> <p>Rizwan aka RizwanSharp</p> <p> </p>Tue, 16 Jan 2007 18:40:19 Z2007-01-17T04:32:34Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#f0c84379-bc8b-4e2c-a139-11b18371c631http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#f0c84379-bc8b-4e2c-a139-11b18371c631Sean Hedermanhttp://social.msdn.microsoft.com/Profile/it-IT/?user=Sean%20HedermanRun application as a Service<p>Perhaps we were talking about WCF because he asked specifically about it and .NET 3.0?</p>Tue, 16 Jan 2007 18:48:53 Z2007-01-16T18:48:53Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#6c30586a-9def-4546-b70b-4984a243eb83http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#6c30586a-9def-4546-b70b-4984a243eb83RizwanSharphttp://social.msdn.microsoft.com/Profile/it-IT/?user=RizwanSharpRun application as a Service<div class=quote><table width="85%"><tr><td class=txt4> <strong>Sean Hederman wrote:</strong></td></tr><tr><td class=quoteTable><table width="100%"><tr><td width="100%" valign=top class=txt4> <p>Perhaps we were talking about WCF because he asked specifically about it and .NET 3.0?</p> <p></td></tr></table></td></tr></table></div></p> <p>Ooops, Sorry, I did read his only first post and then the solutions you people provided and ignored the post in which he wrote about WCF. In first post he didnot specify anything specific to .Net 3.0 so it was m y mistake.</p> <p>Best Regards,</p> <p>Rizwan aka RizwanSharp</p>Tue, 16 Jan 2007 18:58:57 Z2007-01-16T18:58:57Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#e212e5ed-7bf6-425f-8c09-0734c90ad731http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#e212e5ed-7bf6-425f-8c09-0734c90ad731Ross Darganhttp://social.msdn.microsoft.com/Profile/it-IT/?user=Ross%20DarganRun application as a Service<P>take a peek at my blog, I cover both&nbsp;services and wcf:-</P> <P><a target="_blank" title="http://blog.the-dargans.co.uk/2007/01/windows-services.html" href="http://blog.the-dargans.co.uk/2007/01/windows-services.html">http://blog.the-dargans.co.uk/2007/01/windows-services.html</a></P> <P><a target="_blank" title="http://blog.the-dargans.co.uk/2007/01/wcf-in-net-3.html" href="http://blog.the-dargans.co.uk/2007/01/wcf-in-net-3.html">http://blog.the-dargans.co.uk/2007/01/wcf-in-net-3.html</a></P> <P>Beware that lots of the tools surrounding wcf are still in beta - however it is still a hell of a lot easier than using sockets!</P> <P>Ross :)</P>Tue, 16 Jan 2007 19:21:06 Z2007-01-17T04:32:02Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#64e5d281-f6b8-4742-8c01-4699567ff560http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#64e5d281-f6b8-4742-8c01-4699567ff560thukralzhttp://social.msdn.microsoft.com/Profile/it-IT/?user=thukralzRun application as a Service<p>I asked .NET 3.0, because customer wants WCF and .NET 3.0 service and its client using that service to do the stuff. </p> <p>I really appreciate all the replies I got, I was wondering if I can get an example something Step by Step to create a Service, this is my first time creating a service application and totally new to WCF.</p> <p>Ross articles are really good..</p> <p> </p>Tue, 16 Jan 2007 19:48:01 Z2007-01-16T19:48:01Zhttp://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#deae1e58-2a9d-4df5-be3c-ef0d8fe5aca9http://social.msdn.microsoft.com/Forums/it-IT/csharpgeneral/thread/a25a34e5-87b9-41f1-b54d-82ebb6c3d750#deae1e58-2a9d-4df5-be3c-ef0d8fe5aca9Ross Darganhttp://social.msdn.microsoft.com/Profile/it-IT/?user=Ross%20DarganRun application as a Service<p>Glad you like them:) - the service installer blog is pretty close to a step by step guide, is it worth just seeing where you get with it - I will happly expand upon it with another posting if it would help.</p> <p>WCF if really good - its made for what you are after:)</p> <p>Ross</p>Tue, 16 Jan 2007 20:45:07 Z2007-01-16T20:45:07Z