<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tips &amp; Tricks for ASP.NET, IIS, and Visual Web Developer : Failed Request Tracing</title><link>http://blogs.msdn.com/webdevelopertips/archive/tags/Failed+Request+Tracing/default.aspx</link><description>Tags: Failed Request Tracing</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Tip #38: Did you know... How to use Failed Request Tracing to trace Rewrite Rules?</title><link>http://blogs.msdn.com/webdevelopertips/archive/2008/12/28/tip-38-did-you-know-how-to-use-failed-request-tracing-to-trace-rewrite-rules.aspx</link><pubDate>Sun, 28 Dec 2008 22:54:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9255068</guid><dc:creator>WebDevTools</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/webdevelopertips/comments/9255068.aspx</comments><wfw:commentRss>http://blogs.msdn.com/webdevelopertips/commentrss.aspx?PostID=9255068</wfw:commentRss><description>&lt;p&gt;IIS7.0 Failed Request Tracing (FRT) is a powerful troubleshooting tool for request-processing failures. More details regarding FRT and how to enable it can be be found &lt;a href="http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis7/" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Once the failed request tracing is enabled for your site, do the following to trace rewrite rules:&lt;/p&gt;  &lt;li&gt;Double click on &amp;quot;Failed Request Tracing Rules&amp;quot; icon to get to the list of FRT rules.&lt;/li&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="443" alt="frt" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt_thumb.png" width="544" border="0" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;li&gt;Click on &amp;quot;Add ...&amp;quot; action to bring up the FRT rule creation wizard. &lt;/li&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt1.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="385" alt="frt1" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt1_thumb.png" width="504" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;li&gt;On first page of the wizard choose &amp;#8220;All content (*)&amp;#8221; &lt;/li&gt;  &lt;li&gt;Click &amp;#8220;Next&amp;#8221; and specify the status code(s) as &amp;#8220;200-399&amp;#8221;&lt;/li&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="385" alt="frt2" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt2_thumb.png" width="504" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;li&gt;Click Next and then uncheck all the trace providers except &amp;#8220;WWW Server&amp;#8221; and then uncheck all the provider areas except &amp;#8220;Rewrite&amp;#8221;&lt;/li&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt3.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="383" alt="frt3" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtouseFailedRequestTracingtotraceR_A70F/frt3_thumb.png" width="504" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;li&gt;Click on Finish to save the FRT rule.&lt;/li&gt;  &lt;p&gt;After the FRT rule is created, the log will start getting generated in %SystemDrive%\inetpub\Logs\FaileReqLogFiles\. You can open this log by using Internet Explorer, and it will be rendered as an HTML document that can be easily browsed.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;PS: &lt;/strong&gt;If the Failed Request Tracing was installed after URL rewrite module, the &amp;quot;Rewrite&amp;quot; area in Trace Providers may not be available. If you do not see &amp;quot;Rewrite&amp;quot; area listed there, go to Add/Remove programs and then run URL rewrite module installer in repair mode.&lt;/p&gt;  &lt;p&gt;For more details on this, read this &lt;a href="http://learn.iis.net/page.aspx/467/using-failed-request-tracing-to-trace-rewrite-rules/" target="_blank"&gt;walkthrough&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Don Raman      &lt;br /&gt;&lt;/strong&gt;SDET, &lt;a href="http://www.iis.net/"&gt;IIS Team&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9255068" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/URL+Rewrite/default.aspx">URL Rewrite</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/Failed+Request+Tracing/default.aspx">Failed Request Tracing</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/FRT/default.aspx">FRT</category></item></channel></rss>