<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Windows Service Archives - Blog IT</title>
	<atom:link href="https://blogit.create.pt/tag/windows-service/feed/" rel="self" type="application/rss+xml" />
	<link>https://blogit.create.pt/tag/windows-service/</link>
	<description>Create IT blogger community</description>
	<lastBuildDate>Thu, 10 Jan 2019 14:18:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Debugging Windows Services</title>
		<link>https://blogit.create.pt/marcosilva/2007/08/26/debugging-windows-services/</link>
					<comments>https://blogit.create.pt/marcosilva/2007/08/26/debugging-windows-services/#respond</comments>
		
		<dc:creator><![CDATA[Marco Silva]]></dc:creator>
		<pubDate>Sun, 26 Aug 2007 12:36:00 +0000</pubDate>
				<category><![CDATA[Debug]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Windows Service]]></category>
		<category><![CDATA[Service]]></category>
		<guid isPermaLink="false">http://blogcreate.azurewebsites.net/marcosilva/?p=271</guid>

					<description><![CDATA[<p>Recently I had to develop my first Windows Service in C#. I had already done Services in C++, and I was used to launch and debug the Services thru Visual Studio (just by normally hitting F5).&#160; I was surprised to see that the normal C# Windows Service code base does not allow this to be [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/marcosilva/2007/08/26/debugging-windows-services/">Debugging Windows Services</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><font size="2">Recently I had to develop my first Windows<br />
Service in C#. I had already done Services in C++, and I was used to launch and<br />
debug the Services thru Visual Studio (just by normally hitting F5).&nbsp;</font></p>
<p><font size="2">I was surprised to see that the normal C# Windows<br />
Service code base does not allow this to be possible in a &quot;out-of-the-box&quot;<br />
experience, and one had to do things like &quot;Attach to Process&quot;, and/or put in<br />
the source code &quot;System.Diagnostics.Debugger.Launch();&quot;.</font></p>
<p><font size="2">Not satisfied with these solutions, I searched<br />
the web and I found this page that as a &quot;perfect solution&quot;.</font></p>
<p><font size="2"><a href="http://theimes.com/archive/2006/12/28/Debugging-Windows-Services-is-a-Pain.aspx">http://theimes.com/archive/2006/12/28/Debugging-Windows-Services-is-a-Pain.aspx</a></font> </p>
<p><font size="2">The author developed a Service Debugger Helper<br />
class, that incorporates a GUI for allowing all the expected Start, Stop, etc,<br />
interaction with the service. It is also possible to automatically start a<br />
service by default, thus allowing the normal F5 experience.</font></p>
<p><font size="2">Check out the author article and his source<br />
code if you are interested in knowing how he made this. Also this other link<br />
could be of interest to someone.</font></p>
<p><font size="2">Run a Service without a debugger attached (.NET<br />
Windows Service Runner)</font></p>
<p><font size="2"><a href="http://theimes.com/archive/2007/08/22/net-windows-service-runner.aspx">http://theimes.com/archive/2007/08/22/net-windows-service-runner.aspx</a></font></p>
<p><font size="2">PS: Regarding the usage of Timers in Windows<br />
Services, be careful to use the ones in System.Timers.Timer, or else the timer may never (or<br />
stop) be (being) fired.</font></p>
<p>The post <a href="https://blogit.create.pt/marcosilva/2007/08/26/debugging-windows-services/">Debugging Windows Services</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/marcosilva/2007/08/26/debugging-windows-services/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
