<?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>Prolific Notion &#187; Windows Server 2008</title>
	<atom:link href="http://www.prolificnotion.co.uk/category/development/windows-server-2008/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prolificnotion.co.uk</link>
	<description>Welcome to the miscellaneous mutterings of Simon Dingley, Certified Umbraco Developer</description>
	<lastBuildDate>Sun, 15 Jan 2012 08:06:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ELMAH &#8211; An attempt was made to load a program with an incorrect format.</title>
		<link>http://www.prolificnotion.co.uk/elmah-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/</link>
		<comments>http://www.prolificnotion.co.uk/elmah-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 11:36:45 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Exceptions]]></category>
		<category><![CDATA[IIS7]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=567</guid>
		<description><![CDATA[
			
				
			
		
Following the recent series of posts on issues I have had migrating client sites from IIS6 to IIS7, one common problem I had was on sites that use the ELMAH exception handler. The full exception message is &#8220;Could not load file or assembly &#8216;System.Data.SQLite&#8217; or one of its dependencies. An attempt was made to load [...]<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/" rel="bookmark">Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net</a><!-- (7.9)--></li>
		<li><a href="http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/" rel="bookmark">Use AppCmd to Migrate web.config from IIS6 to IIS7</a><!-- (5.2)--></li>
	</ol>


Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Felmah-an-attempt-was-made-to-load-a-program-with-an-incorrect-format%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Felmah-an-attempt-was-made-to-load-a-program-with-an-incorrect-format%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Following the recent series of posts on issues I have had migrating client sites from IIS6 to IIS7, one common problem I had was on sites that use the ELMAH exception handler. The full exception message is &#8220;<em>Could not load file or assembly &#8216;System.Data.SQLite&#8217; or one of its dependencies. An attempt was made to load a program with an incorrect format.</em> &#8220;.</p>
<p>Another easy fix for this one but rather than it being a config issue relating to the IIS version I believe this is more related to the move from a 32-Bit server to a 64-Bit Windows Server. To correct the issue you need to modify the advanced settings for your app pool to &#8220;Enable 32-Bit Applications&#8221;.</p>
<p><a href="http://www.prolificnotion.co.uk/wp-content/uploads/2010/11/enable32bitapps.png"><img class="alignnone size-full wp-image-568" title="Advanced Settings Dialog for Application Pool" src="http://www.prolificnotion.co.uk/wp-content/uploads/2010/11/enable32bitapps.png" alt="Advanced Settings Dialog for Application Pool" width="445" height="550" /></a></p>
<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/" rel="bookmark">Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net</a><!-- (7.9)--></li>
		<li><a href="http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/" rel="bookmark">Use AppCmd to Migrate web.config from IIS6 to IIS7</a><!-- (5.2)--></li>
	</ol>

<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/elmah-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use AppCmd to Migrate web.config from IIS6 to IIS7</title>
		<link>http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/</link>
		<comments>http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 19:21:44 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[IIS7]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=555</guid>
		<description><![CDATA[If your site uses any httpHandlers or httpModules you will need to perform these steps to migrate your web.config to include the missing configuration sections required by IIS7 using AppCmd.exe<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/" rel="bookmark">Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net</a><!-- (12.6)--></li>
		<li><a href="http://www.prolificnotion.co.uk/the-create-dialog-for-media-does-not-match-anything-defined-in-the-umbracoconfigcreateui-xml/" rel="bookmark">The create dialog for &#8220;Media&#8221; does not match anything defined in the &#8220;~/umbraco/config/create/UI.xml&#8221;.</a><!-- (5.4)--></li>
	</ol>


Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fuse-appcmd-to-migrate-web-config-from-iis6-to-iis7%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fuse-appcmd-to-migrate-web-config-from-iis6-to-iis7%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Further to my earlier post I encountered another issue migrating sites for a client from IIS6 to IIS7. If your site uses any <a title="Introduction to HTTP Handlers " href="http://msdn.microsoft.com/en-us/library/ms227675(v=VS.85).aspx">httpHandlers</a> or <a title="Introduction to HTTP Modules " href="http://msdn.microsoft.com/en-us/library/ms178468(v=VS.85).aspx">httpModules</a> you will need to perform these steps to migrate your web.config to include the missing configuration sections required by IIS7.</p>
<p>First of all I would suggest listing out all sites using <a title="Getting Started with AppCmd.exe" href="http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe">AppCmd</a> and the following command:</p>
<pre class="brush: plain; title: ; notranslate">%systemroot%\system32\inetsrv\APPCMD list sites</pre>
<p>Your output should be similar with the following:</p>
<pre class="brush: plain; title: ; notranslate">SITE &quot;Default Web Site&quot; (id:1,bindings:HTTP/*:80:,state:Started)

SITE &quot;Site1&quot; (id:2,bindings:http/*:81:,state:Started)

SITE &quot;Site2&quot; (id:3,bindings:http/*:82:,state:Stopped)</pre>
<p>Make a note of the object specific identifier in quotes as you will need this to specify the website/app whose web.config you wish to migrate.</p>
<p>Next you will need to run another command to perform the migration as follows:</p>
<pre class="brush: plain; title: ; notranslate">%systemroot%\system32\inetsrv\APPCMD.EXE migrate config &quot;object-specific-identifier/&quot;</pre>
<p>There is a very important point worth noting here as it caught me out for quite a while, be sure to include a trailing slash after your object specific identifier or the command will fail.</p>
<p>All being well your should get a message similar to this confirming the web.config has been migrated.</p>
<pre class="brush: plain; title: ; notranslate">Successfully migrated section &quot;system.web/httpModules&quot;.
Successfully migrated section &quot;system.web/httpHandlers&quot;.</pre>
<p>That&#8217;s it, for me the app was back up and running again after these steps.</p>
<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/" rel="bookmark">Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net</a><!-- (12.6)--></li>
		<li><a href="http://www.prolificnotion.co.uk/the-create-dialog-for-media-does-not-match-anything-defined-in-the-umbracoconfigcreateui-xml/" rel="bookmark">The create dialog for &#8220;Media&#8221; does not match anything defined in the &#8220;~/umbraco/config/create/UI.xml&#8221;.</a><!-- (5.4)--></li>
	</ol>

<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Page.User is null on IIS7 in Integrated Mode with UrlRewriting.Net</title>
		<link>http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/</link>
		<comments>http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 15:47:25 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Exceptions]]></category>
		<category><![CDATA[IIS7]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=549</guid>
		<description><![CDATA[
			
				
			
		
I am in the process of migrating a large number of sites from a Windows 2003 Server to a Windows 2008 R2 Server for a client. When testing the migrated sites I kept getting the all too familiar &#8216;Object reference not set to an instance of an object&#8217; exceptions. As the site was in debug [...]<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/" rel="bookmark">Use AppCmd to Migrate web.config from IIS6 to IIS7</a><!-- (12)--></li>
		<li><a href="http://www.prolificnotion.co.uk/elmah-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/" rel="bookmark">ELMAH &#8211; An attempt was made to load a program with an incorrect format.</a><!-- (9.2)--></li>
		<li><a href="http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/" rel="bookmark">Problems with Windows Server Hosted in the Cloud Maintaining Correct Time</a><!-- (5.8)--></li>
	</ol>


Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fpage-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fpage-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I am in the process of migrating a large number of sites from a Windows 2003 Server to a Windows 2008 R2 Server for a client. When testing the migrated sites I kept getting the all too familiar &#8216;Object reference not set to an instance of an object&#8217; exceptions. As the site was in debug mode at this stage I got the full stack trace and was able to pinpoint the problem to the Page.User object being null. Strange as it was working fine on IIS6 so there must be something different in IIS7 that is causing the exception.</p>
<p>After some research I discovered an easy fix to the problem which requires you to add an attribute to the modules node in the system.webServer configuration section of your web.config file as follows:</p>
<pre class="brush: xml; title: ; notranslate">&lt;modules runAllManagedModulesForAllRequests=&quot;true&quot;&gt;</pre>
<p>Magically the error disappears after adding this. See the &#8216;<a href="Tip/Trick: Url Rewriting with ASP.NET">Tip/Trick: Url Rewriting with ASP.NET</a>&#8216; post on Scott Guthries blog for more details on this.</p>
<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/use-appcmd-to-migrate-web-config-from-iis6-to-iis7/" rel="bookmark">Use AppCmd to Migrate web.config from IIS6 to IIS7</a><!-- (12)--></li>
		<li><a href="http://www.prolificnotion.co.uk/elmah-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/" rel="bookmark">ELMAH &#8211; An attempt was made to load a program with an incorrect format.</a><!-- (9.2)--></li>
		<li><a href="http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/" rel="bookmark">Problems with Windows Server Hosted in the Cloud Maintaining Correct Time</a><!-- (5.8)--></li>
	</ol>

<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/page-user-is-null-on-iis7-in-integrated-mode-with-urlrewriting-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problems with Windows Server Hosted in the Cloud Maintaining Correct Time</title>
		<link>http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/</link>
		<comments>http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 22:23:00 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=536</guid>
		<description><![CDATA[
			
				
			
		
I currently maintain two windows based servers in the cloud with Elastic Hosts, one of my own and one for a client. On both I have scheduled tasks running and noticed that the time was slipping on the execution of these tasks over time. It became apparent that the server was unable to maintain the [...]<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/smtp-logging-on-windows-server-2008/" rel="bookmark">Setup SMTP Logging on Windows Server 2008 by enabling the ODBC Logging module</a><!-- (7.8)--></li>
		<li><a href="http://www.prolificnotion.co.uk/rejoin-windows-workstation-to-small-business-server-2003-domain/" rel="bookmark">Rejoin Windows Workstation to Small Business Server 2003 Domain</a><!-- (5)--></li>
		<li><a href="http://www.prolificnotion.co.uk/stop-filezilla-server-interface-from-loading-on-startup/" rel="bookmark">Stop FileZilla Server Interface from loading on startup</a><!-- (5)--></li>
	</ol>


Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fproblems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fproblems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I currently maintain two windows based servers in the cloud with Elastic Hosts, one of my own and one for a client. On both I have scheduled tasks running and noticed that the time was slipping on the execution of these tasks over time. It became apparent that the server was unable to maintain the correct time and I was unable to figure out why so a quick email to the support team and the issue was solved within the hour!</p>
<p>It appears that the issue is the emulation of the hardware clock by the virtualization system. On Linux and other Unix based operating systems, the convention is that the hardware clock is permanently set to UTC (i.e. GMT without DST), and the operating system adjusts this for display. On DOS and Windows, the convention is that the hardware clock stores local time, and that the operating system adjusts this when DST starts and ends. The host cannot support both of these behaviours, since their virtualization layer does not know what operating system it will boot when it sets up the virtual hardware to start a server. As they have chosen the UTC behaviour something needs to change in my operating system to compensate for this.</p>
<p>The solution was to locate the following entry in the registry on the server:</p>
<pre class="brush: plain; title: ; notranslate">HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal</pre>
<p>Setting the value of this registry entry to 1 solved the problem for me. Further information on the topic can be found at <a href="http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html" target="_blank">http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html</a></p>
<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/smtp-logging-on-windows-server-2008/" rel="bookmark">Setup SMTP Logging on Windows Server 2008 by enabling the ODBC Logging module</a><!-- (7.8)--></li>
		<li><a href="http://www.prolificnotion.co.uk/rejoin-windows-workstation-to-small-business-server-2003-domain/" rel="bookmark">Rejoin Windows Workstation to Small Business Server 2003 Domain</a><!-- (5)--></li>
		<li><a href="http://www.prolificnotion.co.uk/stop-filezilla-server-interface-from-loading-on-startup/" rel="bookmark">Stop FileZilla Server Interface from loading on startup</a><!-- (5)--></li>
	</ol>

<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discover which ASP.Net Worker Process Belongs to each AppPool</title>
		<link>http://www.prolificnotion.co.uk/discover-which-asp-net-worker-process-belongs-to-each-apppool/</link>
		<comments>http://www.prolificnotion.co.uk/discover-which-asp-net-worker-process-belongs-to-each-apppool/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 07:43:25 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=460</guid>
		<description><![CDATA[
			
				
			
		
Ever needed to know which ASP.Net worker process (w3wp.exe)  belongs to an App Pool? Well I did recently when I needed to attach to it for debugging and there was no obvious way to find out which process related to each app pool. A little bit of research led me to discover AppCmd.exe. I wrote [...]<h3>Related Posts</h3>

No related posts.


Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fdiscover-which-asp-net-worker-process-belongs-to-each-apppool%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fdiscover-which-asp-net-worker-process-belongs-to-each-apppool%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Ever needed to know which ASP.Net worker process (w3wp.exe)  belongs to an App Pool? Well I did recently when I needed to attach to it for debugging and there was no obvious way to find out which process related to each app pool. A little bit of research led me to discover <a title="Getting Started with AppCmd.exe" href="http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/">AppCmd.exe</a>. I wrote a small batch file which will list them all for you and include the process id. Simply copy the following into a blank text file and save with a .bat extension and you can run it whenever you need to, alternatively just run the command through a standard command prompt.</p>
<pre class="brush: plain; title: ; notranslate">﻿cd %systemroot%\system32\inetsrv
appcmd list wps
pause</pre>
<p>You should end up with a line like the following for each worker process on your machine:</p>
<pre class="brush: plain; title: ; notranslate">WP &quot;5528&quot; (applicationPool:DefaultAppPool)</pre>
<h3>Related Posts</h3>
<p>No related posts.</p>

<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/discover-which-asp-net-worker-process-belongs-to-each-apppool/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setup SMTP Logging on Windows Server 2008 by enabling the ODBC Logging module</title>
		<link>http://www.prolificnotion.co.uk/smtp-logging-on-windows-server-2008/</link>
		<comments>http://www.prolificnotion.co.uk/smtp-logging-on-windows-server-2008/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 21:15:13 +0000</pubDate>
		<dc:creator>Simon Dingley</dc:creator>
				<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=427</guid>
		<description><![CDATA[
			
				
			
		
I recently had a client who had some issues delivering mail from their site so I went to look at the SMTP logs only to find that there were none there (I am embarrassed to say). I notice that I had configured the logs to be written to a custom directory on a separate drive from the operating system and thought [...]<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/" rel="bookmark">Problems with Windows Server Hosted in the Cloud Maintaining Correct Time</a><!-- (6.1)--></li>
	</ol>


Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fsmtp-logging-on-windows-server-2008%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.prolificnotion.co.uk%2Fsmtp-logging-on-windows-server-2008%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=R_e35365ff035ed93fc3e67e6f868b7be3&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently had a client who had some issues delivering mail from their site so I went to look at the SMTP logs only to find that there were none there (I am embarrassed to say). I notice that I had configured the logs to be written to a custom directory on a separate drive from the operating system and thought that may have been the issue however it turns out that there are some steps that needs to be taken in order for SMTP logging to work on Windows Server 2008. It&#8217;s odd enough that you need to use the legacy IIS 6 management console to administer your SMTP Server but there is also no obvious steps when setting up your server that indicate the requirements for SMTP logging.</p>
<p>To get logging working you need to install the ODBC Logging module by following these steps:</p>
<ol>
<li>On the taskbar, click <strong>Start</strong>, point to <strong>Administrative Tools</strong>, and then click <strong>Server Manager</strong>.</li>
<li>In the <strong>Server Manager</strong> hierarchy pane, expand <strong>Roles</strong>, and then click <strong>Web Server (IIS)</strong>.</li>
<li>In the <strong>Web Server (IIS)</strong> pane, scroll to the <strong>Role Services</strong> section, and then click <strong>Add Role Services</strong>.</li>
<li>On the <strong>Select Role Services</strong> page of the <strong>Add Role Services Wizard</strong>, select <strong>ODBC Logging</strong>, and then click <strong>Next</strong>.</li>
<li> <a title="Click to enlarge" href="http://www.prolificnotion.co.uk/wp-content/uploads/2010/07/odbcLogging_setup_1.png"><img class="alignnone size-medium wp-image-428" title="Enable ODBC Logging" src="http://www.prolificnotion.co.uk/wp-content/uploads/2010/07/odbcLogging_setup_1-300x211.png" alt="ODBC Logging - How to enable" width="300" height="211" /><br />
</a></li>
<li>On the <strong>Confirm Installation Selections</strong> page, click <strong>Install</strong>.</li>
<li>On the <strong>Results</strong> page, click <strong>Close</strong>.</li>
</ol>
<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.prolificnotion.co.uk/problems-with-windows-server-hosted-in-the-cloud-maintaining-correct-time/" rel="bookmark">Problems with Windows Server Hosted in the Cloud Maintaining Correct Time</a><!-- (6.1)--></li>
	</ol>

<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.prolificnotion.co.uk/smtp-logging-on-windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

