<?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>RuslanY Blog &#187; Tracing</title>
	<atom:link href="http://ruslany.net/tag/tracing/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruslany.net</link>
	<description>IIS, FastCGI, PHP and other interesting stuff</description>
	<lastBuildDate>Fri, 30 Jul 2010 23:07:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Debug and troubleshoot rewrite rules easily</title>
		<link>http://ruslany.net/2008/10/debug-and-troubleshoot-rewrite-rules-easily/</link>
		<comments>http://ruslany.net/2008/10/debug-and-troubleshoot-rewrite-rules-easily/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 05:13:28 +0000</pubDate>
		<dc:creator>ruslany</dc:creator>
				<category><![CDATA[URLRewrite]]></category>
		<category><![CDATA[Tracing]]></category>

		<guid isPermaLink="false">http://ruslany.net/2008/10/debug-and-troubleshoot-rewrite-rules-easily/</guid>
		<description><![CDATA[One of the very cool features of URL Rewrite Module is its integration with IIS Failed Request Tracing. When you have rewrite rules that do not work the way you expect them to work &#8211; enable Failed Request Tracing and you will get the entire history of how rewrite rules were applied on the requested [...]]]></description>
			<content:encoded><![CDATA[<p>One of the very cool features of URL Rewrite Module is its integration with <a title="IIS Failed Request Tracing" href="http://learn.iis.net/page.aspx/467/using-failed-request-tracing-to-trace-rewrite-rules">IIS Failed Request Tracing</a>. When you have rewrite rules that do not work the way you expect them to work &#8211; enable Failed Request Tracing and you will get the entire history of how rewrite rules were applied on the requested URL. I use Failed Request Tracing all the time and it has proven to be a great help when debugging and troubleshooting rewrite rules.</p>
<p><span id="more-110"></span>When you enable Failed Request Tracing and make an HTTP request that you want to trace, IIS creates a trace log file <strong>fr<em>NNNNNN</em>.xml</strong> located by default at <strong>%WINDIR%\inetpub\logs\FailedReqLogFiles\W3SVC<em>N</em></strong>. This xml file references <strong>freb.xsl</strong> file that is used to render the trace data in a web browser in a human-friendly form: </p>
<p><a href="http://ruslany.net/wp-content/uploads/2008/10/freb1.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="366" alt="FREB1" src="http://ruslany.net/wp-content/uploads/2008/10/freb1-thumb.png" width="504" border="0" /></a> </p>
<p>When the trace file is rendered in a web browser the URL Rewrite trace events are mixed together with all other IIS events. If trace file is very verbose it may take you some time to locate URL Rewrite specific events. Would not it be nice if there was an easier way of locating the URL Rewrite trace events other than scanning through the log file?</p>
<p>There is a relatively easy way to fix that. Use the link below to download the updated version of <strong>freb.xsl</strong> file and then put it into the directory where trace files are located (usually in<strong> %WINDIR%\inetpub\logs\FailedReqLogFiles\W3SVC&lt;siteid&gt;\</strong>). Overwrite the old <strong>freb.xsl</strong> file which was placed there by IIS. After you&#8217;ve done this, if you open any of the trace files, you will be able to easily locate all URL Rewrite specific events:</p>
<p><a href="http://ruslany.net/wp-content/uploads/2008/10/freb2.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="345" alt="FREB2" src="http://ruslany.net/wp-content/uploads/2008/10/freb2-thumb.png" width="504" border="0" /></a> </p>
<p>Download the freb.xsl file here:</p>
<p><a href="http://ruslany.net/download/freb.zip" title="Version 1.0 downloaded 511 times" >FREB Stylesheet for URL Rewriter (14.74 KB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ruslany.net/2008/10/debug-and-troubleshoot-rewrite-rules-easily/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
