<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.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/"><channel><title>HttpHandlers and HttpModules</title><link>http://forums.asp.net/27.aspx</link><description>Extending the ASP.NET Framework through HttpModules and HttpHandlers.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Url Rewriting</title><link>http://forums.asp.net/thread/3268620.aspx</link><pubDate>Wed, 01 Jul 2009 10:43:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268620</guid><dc:creator>mihir.mone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268620.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3268620</wfw:commentRss><description>&lt;p&gt;After spending a lot of time I came to know that, sections under &amp;lt;system.webServer&amp;gt; are locked.&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;user&amp;nbsp;has administrative privilages, sections can be unlocked.&lt;/p&gt;
&lt;p&gt;You can fire command -&amp;#39;appcmd.exe&amp;#39; though command prompt.&lt;/p&gt;</description></item><item><title>Re: Url Rewriting</title><link>http://forums.asp.net/thread/3266374.aspx</link><pubDate>Tue, 30 Jun 2009 11:47:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3266374</guid><dc:creator>mihir.mone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3266374.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3266374</wfw:commentRss><description>&lt;p&gt;Thanks Rick,&lt;/p&gt;
&lt;p&gt;Yes, I am not getting this &amp;lt;modules&amp;gt; in intellisence in ASP.net&amp;nbsp;2.0&lt;/p&gt;
&lt;p&gt;I understand that I can&amp;nbsp;register my module&amp;nbsp;with &amp;lt;system.web&amp;gt;&amp;lt;httpModules&amp;gt;, but my&amp;nbsp;web server has IIS 7, where I will be using Integrated pipeline over classic, hence I am trying with &amp;lt;system.webSever&amp;gt;&amp;lt;modules&amp;gt;.&lt;/p&gt;
&lt;p&gt;I want to invoke the module for any path without any extension (e.g. &lt;a href="http://mysite/mihir"&gt;http://mysite/mihir&lt;/a&gt;&amp;nbsp;, this would be re-written as &lt;a href="http://mysite/employee.aspx?name=mihir"&gt;http://mysite/employee.aspx?name=mihir&lt;/a&gt; )&lt;/p&gt;
&lt;p&gt;My problem is -&amp;nbsp;&amp;lt;system.webSever&amp;gt; doesnt show &amp;lt;modules&amp;gt; in intellisence, and&amp;nbsp;though I type in the whole &amp;lt;modules&amp;gt; section.. it doesn&amp;#39;t work.&lt;/p&gt;</description></item><item><title>Re: Url Rewriting</title><link>http://forums.asp.net/thread/3266340.aspx</link><pubDate>Tue, 30 Jun 2009 11:32:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3266340</guid><dc:creator>RickNZ</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3266340.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3266340</wfw:commentRss><description>&lt;p&gt;Interesting, &amp;lt;modules&amp;gt; is in Intellisense for me with .NET 3.5....&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;For IIS 7, you should register HttpModules in two places:&lt;/p&gt;&lt;p&gt;&amp;lt;system.web&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;httpModules&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;MyModule&amp;quot; type=&amp;quot;Namespace.Class&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;/httpModules&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/system.web&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;And here:&lt;/p&gt;&lt;p&gt;&amp;lt;system.webServer&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;modules&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;MyModule&amp;quot; type=&amp;quot;Namespace.Class&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;/modules&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/system.webServer&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;You might also want to add preCondition=&amp;quot;managedHandler&amp;quot; to the second instance, if your code is intended only for aspx files and not for static files too.&lt;/p&gt;&lt;p&gt;The different registrations have to do with things like Cassini and Classic vs. Integrated mode in IIS 7.&amp;nbsp; You can always set a breakpoint to make sure your code is actually running.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Url Rewriting</title><link>http://forums.asp.net/thread/3265594.aspx</link><pubDate>Tue, 30 Jun 2009 05:09:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3265594</guid><dc:creator>mihir.mone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3265594.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3265594</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am working on a web application in ASP.net 2.0 with IIS7, which needs Url Rewriting for some part of it.&lt;/p&gt;
&lt;p&gt;I created HttpModule&amp;nbsp;to serve the purpose (handled BeginRequest event).&lt;/p&gt;
&lt;p&gt;When&amp;nbsp;I try and register HttpModule under &amp;lt;system.webServer&amp;gt; section, I can not see &amp;lt;modules&amp;gt; section listed in the intellisence. Hence I typed in, but it didn&amp;#39;t work for me.&lt;/p&gt;
&lt;p&gt;Application should allow paths like - &lt;a href="http://mysite/mihir"&gt;http://mysite/mihir&lt;/a&gt; (redirect to - &lt;a href="http://mysite/employee.aspx?name=mihir"&gt;http://mysite/employee.aspx?name=mihir&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;It was pretty easy with IIS 6.0, but I am facing this issue with IIS 7.0.&lt;/p&gt;
&lt;p&gt;Would appriciate for your help.&lt;/p&gt;
&lt;p&gt;Many Thanks,&lt;/p&gt;
&lt;p&gt;Mihir.&lt;/p&gt;</description></item></channel></rss>