<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tags 'asp.net', 'Integrated mode', and 'RewritePath'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=asp.net,Integrated+mode,RewritePath&amp;orTags=0</link><description>Search results matching tags 'asp.net', 'Integrated mode', and 'RewritePath'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Extending IIS to enable URL Rewriting in ASP.NET applications</title><link>http://forums.iis.net/p/1031243/1418926.aspx#1418926</link><pubDate>Thu, 05 Oct 2006 06:57:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1418926</guid><dc:creator>mvolo</dc:creator><cs:applicationKey>iis7_-_extensibility--1</cs:applicationKey><description>&lt;p&gt;Unfortunately, a couple things are still pretty hard to do in the Integrated mode, and remapping the handler based on a Rewrite is one of them.&amp;nbsp; Without boring you with technical details (about which you should be able to read about in my future blog post), here is how you can work around this limitation:&lt;br /&gt;&lt;br /&gt;1. Enable all ASP.NET modules to run for all requests by setting:&lt;br /&gt;&amp;lt;modules runAllManagedModulesForAllRequests=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;NOTE: This will basically ignore the preCondition=managedHandler configuration for the default managed modules in the app, allowing all of them to run for all requests.&amp;nbsp; You may experience a performance hit for static files, but it may not be significant if most of your content is ASP.NET based as is.&lt;br /&gt;&lt;br /&gt;2. Make sure that your module is running prior to MapRequestHandler (realistically, in PostAuthorizeRequest or before) to do the RewritePath call.&lt;br /&gt;&lt;br /&gt;Let me know if this doesnt work for you.&amp;nbsp; As I said, I will try to blog about Rewriting in ASP.NET 2.0 / IIS7 and various options you have there.&amp;nbsp; This will be on &lt;a href="http://www.mvolo.com/"&gt;www.mvolo.com&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>