<?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>Fredrik Haglund's blog &#187; Services</title>
	<atom:link href="http://blog.fredrikhaglund.se/blog/tag/services/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fredrikhaglund.se</link>
	<description>Chatter about EPiServer, ASP.NET, CSS and Web Development.</description>
	<lastBuildDate>Tue, 28 Jun 2011 13:37:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Enable debug logging for EPiServer Scheduler</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/04/03/enable-debug-logging-for-episerver-scheduler/</link>
		<comments>http://blog.fredrikhaglund.se/blog/2008/04/03/enable-debug-logging-for-episerver-scheduler/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 18:02:54 +0000</pubDate>
		<dc:creator>Fredrik Haglund</dc:creator>
				<category><![CDATA[EPiServer]]></category>
		<category><![CDATA[EPiServer 5]]></category>
		<category><![CDATA[EPiServer.SchedulerSvc.exe.config]]></category>
		<category><![CDATA[Publish Delayed Page Versions]]></category>
		<category><![CDATA[Scheduled Jobs]]></category>
		<category><![CDATA[ScheduledPlugIn]]></category>
		<category><![CDATA[ScheduledPlugInAttribute]]></category>
		<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/04/03/enable-debug-logging-for-episerver-scheduler/</guid>
		<description><![CDATA[If you have problems with the EPiServer Scheduler Service unexcitingly stopping you can also turn on debug logging to get more clues. Change EPiServer.SchedulerSvc.exe.config FILE You need to add the following to the service&#8217;s config-file to get detailed call stacks for exceptions that occur in you web application: &#60;system.runtime.remoting&#62;   &#60;customErrors mode="Off"/&#62; &#60;/system.runtime.remoting&#62; Update EPiServer.SchedulerSvc [...]]]></description>
			<content:encoded><![CDATA[<p>If you have problems with the EPiServer Scheduler Service unexcitingly stopping you can also turn on debug logging to get more clues.</p>
<h3>Change <em>EPiServer.SchedulerSvc.exe.config</em> FILE</h3>
<p>You need to add the following to the service&#8217;s config-file to get detailed call stacks for exceptions that occur in you web application:</p>
<p><code>&lt;system.runtime.remoting&gt;<br />
  &lt;customErrors mode="Off"/&gt;<br />
&lt;/system.runtime.remoting&gt;</code></p>
<h3>Update EPiServer.SchedulerSvc Registry</h3>
<p><a href="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image3.png"><img border="0" align="right" width="244" src="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image-thumb3.png" alt="image" height="126" style="margin: 0px 0px 0px 10px; border-width: 0px" /></a> Prepare a folder for the log file and make sure the account running the service has write access. I&#8217;m usually lazy and give everyone full access since this logging usually is not left on forever.</p>
<p>User RegEdit and change the ImagePath value for the EPiServer Scheduler Service to include a parameter with the log-filename.</p>
<p><code>HKLM\SYSTEM\CurrentControlSet\Services\EPiServer.SchedulerSvc<br />
ImagePath = C:\Program Files\EPiServer.Scheduler\EPiServer.SchedulerSvc.exe D:\Log\EPiServer.SchedulerSvc.log</code></p>
<p><strong>Be careful when you edit the Registry! </strong>I use to export the key to a file before I change anything so I can look at the original configuration.</p>
<p>See also: <a href="http://blog.fredrikhaglund.se/?p=127">Auto Restart of EPiServer Scheduler Service</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fredrikhaglund.se/blog/2008/04/03/enable-debug-logging-for-episerver-scheduler/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Auto Restart of EPiServer Scheduler Service</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/04/03/auto-restart-of-episerver-scheduler-service/</link>
		<comments>http://blog.fredrikhaglund.se/blog/2008/04/03/auto-restart-of-episerver-scheduler-service/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 10:49:50 +0000</pubDate>
		<dc:creator>Fredrik Haglund</dc:creator>
				<category><![CDATA[EPiServer]]></category>
		<category><![CDATA[EPiServer 5]]></category>
		<category><![CDATA[Publish Delayed Page Versions]]></category>
		<category><![CDATA[Scheduled Jobs]]></category>
		<category><![CDATA[ScheduledPlugIn]]></category>
		<category><![CDATA[ScheduledPlugInAttribute]]></category>
		<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/04/03/auto-restart-of-episerver-scheduler-service/</guid>
		<description><![CDATA[There are several functions in a EPiServer Web Application that rely on the Services installed by EPiServer Manager. For example delayed publish of a new version of a page at a specific time, mirroring of pages between servers, archiving pages that has past the stopped publish date and removing old pages from the waste basket. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image.png"><img border="0" align="right" width="244" src="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image-thumb.png" alt="image" height="172" style="margin: 0px 0px 0px 10px; border: 0px" /></a>There are several functions in a EPiServer Web Application that rely on the Services installed by EPiServer Manager. For example delayed publish of a new version of a page at a specific time, mirroring of pages between servers, archiving pages that has past the stopped publish date and removing old pages from the waste basket.</p>
<h3>Requirements for Scheduled Jobs in EPiServer</h3>
<p>Several things must be true for tasks to be executed:</p>
<ul>
<li><strong>The Service must be running<br />
</strong>The service is installed and updated by EPiServer manager but you may have to configure it and setup the in the computers Administrative Tool for Services.</li>
<li><strong>Each EPiServer Web must be allowed to use the Service</strong><br />
There is only one instance of the Service but there might be several Web Applications. Each has a setting that controls if they are allowed <strong><a href="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image1.png"><img border="0" align="right" width="244" src="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image-thumb1.png" alt="image" height="172" style="margin: 10px 10px 0px 0px; border: 0px" /></a></strong>to connect to the service or not. This often misunderstood setting is displayed on the Capability page in EPiServer Manager.</li>
<li><strong>Each Job must be active and have a schedule</strong><br />
You must also for each Web Application go to admin mode and enable each Scheduled Job by checking Active and give it a schedule.</li>
</ul>
<h3>The EPiServer Scheduler Service does not appear to be active</h3>
<p><a href="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image2.png"><img border="0" align="left" width="240" src="http://blog.fredrikhaglund.se/wp-content/uploads/2008/04/image-thumb2.png" alt="image" height="196" style="margin: 0px 5px 0px 0px; border: 0px" /></a>If you have satisfied all requirements above and it suddenly stops working it can be an uncaught exception that halts your service.</p>
<p>My recommendation is always to configure the EPiServer Services to automatically restart if it should stop unexpectedly. This can be done from the Recovery Tab in the Properties for each Service.</p>
<h3>Update</h3>
<p>See also: <a rel="bookmark" href="http://blog.fredrikhaglund.se/blog/2008/04/03/enable-debug-logging-for-episerver-scheduler/"><font color="#006a80">Enable debug logging for EPiServer Scheduler</font></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fredrikhaglund.se/blog/2008/04/03/auto-restart-of-episerver-scheduler-service/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

