<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx</link><description>There are several problems with ASP.NET MVC application when deployed on IIS 6.0: Extensionless URLs give 404 unless some URL Rewrite module is used or wildcard mapping is enabled IIS 6.0 built-in compression does not work for dynamic requests. As a result</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1719127</link><pubDate>Sat, 29 Aug 2009 15:21:38 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1719127</guid><dc:creator>Atit</dc:creator><description>&lt;p&gt;Omar, you can remove wildcard mapping on your static files and all such request will be handled by native IIS code..&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.codeville.net/2008/07/07/overriding-iis6-wildcard-maps-on-individual-directories/"&gt;blog.codeville.net/.../overriding-iis6-wildcard-maps-on-individual-directories&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1719127" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1698791</link><pubDate>Wed, 08 Jul 2009 18:55:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1698791</guid><dc:creator>Zulu</dc:creator><description>&lt;p&gt;I am getting the following error after deploying my site(IIS).&lt;/p&gt;
&lt;p&gt;I think problem is with connetionstring. PLEASE HELP..&lt;/p&gt;
&lt;p&gt;ERROR ::&lt;/p&gt;
&lt;p&gt;Server Error in &amp;#39;/Fed&amp;#39; Application.&lt;/p&gt;
&lt;p&gt;Login failed for user &amp;#39;VOLLER\ASPNET&amp;#39;.&lt;/p&gt;
&lt;p&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&lt;/p&gt;
&lt;p&gt;Exception Details: System.Data.SqlClient.SqlException: Login failed for user &amp;#39;VOLLER\ASPNET&amp;#39;.&lt;/p&gt;
&lt;p&gt;Source Error:&lt;/p&gt;
&lt;p&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1698791" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1692050</link><pubDate>Fri, 08 May 2009 01:18:06 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1692050</guid><dc:creator>Sergey</dc:creator><description>&lt;p&gt;Nice post.&lt;/p&gt;
&lt;p&gt; Would it be better to use ASP.NET ISAPI and remove static file directories from wildcard map so static files are not read by ISAPI every time, and then implement your HttpCompressionModule so asp.net mvc files get compressed?&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.codeville.net/2008/07/07/overriding-iis6-wildcard-maps-on-individual-directories/"&gt;blog.codeville.net/.../overriding-iis6-wildcard-maps-on-individual-directories&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1692050" width="1" height="1"&gt;</description></item><item><title>Why no support for "If-Modified-Since" header?</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1691214</link><pubDate>Sun, 26 Apr 2009 12:26:41 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1691214</guid><dc:creator>sean</dc:creator><description>&lt;p&gt;Hi Omar,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Thank you for the nice piece of code. However, how come you did not check for the &amp;quot;If-Modified-Since&amp;quot; header? That way, you just need to send back a 304 to the client instead of the entire file all over again. I&amp;#39;ve described how to do this in &lt;a rel="nofollow" target="_new" href="http://my6solutions.com/post/2009/04/25/Enabling-client-side-caching-on-ASP-NET-MVC-on-IIS-60.aspx"&gt;my6solutions.com/.../Enabling-client-side-caching-on-ASP-NET-MVC-on-IIS-60.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Or is there something I&amp;#39;m missing?&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1691214" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1684343</link><pubDate>Thu, 02 Apr 2009 20:20:18 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1684343</guid><dc:creator>Joel Nylund</dc:creator><description>&lt;p&gt;Hi, what I am seeing is that compression is working for my static files but caching is not when I have wildcard mapping. If I disable wildcard mapping then everything works. &lt;/p&gt;
&lt;p&gt;I tried your approach and it doesnt work for me, I get a bunch of bytes rendered on the html page (I think maybe its being double compressed) Do I need to turn off compression somewhere on IIS to do this?&lt;/p&gt;
&lt;p&gt;If I remove the compression module the page gets served but with lots of errors.&lt;/p&gt;
&lt;p&gt;Any ideas/suggestions why I am seeing slightly different behavior? Is it possible MS patched something since then that changes this a bit?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1684343" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1681289</link><pubDate>Wed, 25 Mar 2009 11:06:57 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1681289</guid><dc:creator>omar</dc:creator><description>&lt;p&gt;You can turn on static file compression on IIS 7. I saw there was some config to change on IIS. Forgot. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1681289" width="1" height="1"&gt;</description></item><item><title>IIS7?</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1681281</link><pubDate>Wed, 25 Mar 2009 10:33:51 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1681281</guid><dc:creator>Sparhawk</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I tried the solution. On my development server it works beautifully. &lt;/p&gt;
&lt;p&gt;On the production server the compression works for .aspx and .asmx but not for .js and .css. &lt;/p&gt;
&lt;p&gt;I am assuming that the StaticFileHandler is not used at all by IIS7. &lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Sparhawk&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1681281" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1669567</link><pubDate>Fri, 06 Feb 2009 17:24:44 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1669567</guid><dc:creator>Raphael</dc:creator><description>&lt;p&gt;Hi Omar,&lt;/p&gt;
&lt;p&gt;Wonderful tutorial here. Just a doubt: Does it work with all versions of ASP.NET mvc? I have a site developed around the preview 2, so would this work on it?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1669567" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1663159</link><pubDate>Mon, 19 Jan 2009 10:06:49 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1663159</guid><dc:creator>Meysam</dc:creator><description>&lt;p&gt;Hi Zabir,&lt;/p&gt;
&lt;p&gt;Given we don&amp;#39;t want to compress image files, why don&amp;#39;t you simply remove &amp;quot;.png&amp;quot;, &amp;quot;.jpeg&amp;quot;, &amp;quot;.jpg&amp;quot;, &amp;quot;.gif&amp;quot; &amp;amp; &amp;quot;.bmp&amp;quot; extensions from FILE_TYPES so that they get bypassed and handled and cached by IIS?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1663159" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1661449</link><pubDate>Tue, 13 Jan 2009 18:33:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1661449</guid><dc:creator>Vladimir</dc:creator><description>&lt;p&gt;How I can get it with IIS7? It&amp;#39;s doesn&amp;#39;t work properly. Please, wrote strings in web.config I must change.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1661449" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1655621</link><pubDate>Wed, 03 Dec 2008 08:44:14 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1655621</guid><dc:creator>prabhjot singh </dc:creator><description>&lt;p&gt;Sir,&lt;/p&gt;
&lt;p&gt;I am not using the MVC approach. After deploying the site on the server and implementing everything what you discussed in your earlier article, The &amp;quot;Resource not found&amp;quot; error is thrown. what should i do??&lt;/p&gt;
&lt;p&gt;Regards &lt;/p&gt;
&lt;p&gt;Prabhjot &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1655621" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1654935</link><pubDate>Mon, 24 Nov 2008 13:27:17 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1654935</guid><dc:creator>jorgebg</dc:creator><description>&lt;p&gt;Hi Omar,&lt;/p&gt;
&lt;p&gt;Great job!&lt;/p&gt;
&lt;p&gt;One small detail, I think there is a mistake on the method you use for &amp;quot;non-handled&amp;quot; extensions:&lt;/p&gt;
&lt;p&gt;I removed the compressiontype parameter of the TransmitFileUsingHttpResponse in the lines below.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private void TransmitFileUsingHttpResponse(HttpRequest request, HttpResponse response,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string physicalFilePath, FileInfo file)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (file.Exists)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// We don&amp;#39;t cache/compress such file types. Must be some binary file that&amp;#39;s better&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// to let IIS handle&lt;/p&gt;
&lt;p&gt;				this.ProduceResponseHeader(response, Convert.ToInt32(file.Length), ResponseCompressionType.None, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;physicalFilePath, file.LastWriteTimeUtc);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;response.TransmitFile(physicalFilePath);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Debug.WriteLine(&amp;quot;TransmitFile: &amp;quot; + request.FilePath);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;throw new HttpException((int)HttpStatusCode.NotFound, request.FilePath + &amp;quot; Not Found&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Kind Regards!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1654935" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1653915</link><pubDate>Wed, 12 Nov 2008 18:53:45 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1653915</guid><dc:creator>Ricardo Cavalcanti</dc:creator><description>&lt;p&gt;How do I set StaticFileHandler up in IIS 7?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1653915" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1644729</link><pubDate>Fri, 15 Aug 2008 10:16:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1644729</guid><dc:creator>Niran</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t applying url format &amp;nbsp;like&lt;/p&gt;
&lt;p&gt;&amp;quot;{controller}/{action}/{id}.aspx&amp;quot;&lt;/p&gt;
&lt;p&gt;solve such issues?&lt;/p&gt;
&lt;p&gt;I am still very new to asp.net mvc. And is using this type of url format. This solution will work in shared hosts also.&lt;/p&gt;
&lt;p&gt;Nirandas&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1644729" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1640407</link><pubDate>Fri, 11 Jul 2008 17:28:10 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1640407</guid><dc:creator>omar</dc:creator><description>&lt;p&gt;Hi Steve,&lt;/p&gt;
&lt;p&gt;Thanks for the pointer. As I use a Response Filter to compress dynamic page output, so in my case, the DefaultHttpHandler calls StaticFielHandler to handle it. So, IIS 6 does not handle the file. This is why I made my custom Static File handler.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1640407" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1640392</link><pubDate>Fri, 11 Jul 2008 15:57:55 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1640392</guid><dc:creator>Steve Sanderson</dc:creator><description>&lt;p&gt;Hi Omar&lt;/p&gt;
&lt;p&gt;&amp;gt; Mapping wildcard extension to ASP.NET introduces the following problems...&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think this is always true. If you avoid interfering with the request, then DefaultHttpHandler leaves the request unhandled, which means IIS comes back in and serves the file natively (and then you&amp;#39;ll get all the expiration headers etc.). The problems you describe only apply when DefaultHttpHandler serves the request through StaticFileHandler.&lt;/p&gt;
&lt;p&gt;For details of how it chooses what to do, see &lt;a rel="nofollow" target="_new" href="http://sticklebackplastic.com/2006/10/9/The+continuing+saga+of+StaticFileHandler++meet+DefaultHttpHandler.aspx"&gt;sticklebackplastic.com/.../The+continuing+saga+of+StaticFileHandler++meet+DefaultHttpHandler.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for writing this blog post though; it has lots of nice ideas.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1640392" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1639371</link><pubDate>Fri, 04 Jul 2008 13:30:35 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1639371</guid><dc:creator>omar</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;I believe there&amp;#39;s a confusion here. I haven&amp;#39;t done caching for dynamic requests. My module is only for enabling compression site wide which does not have Action/Controller specific requirement.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1639371" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1639363</link><pubDate>Fri, 04 Jul 2008 12:56:48 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1639363</guid><dc:creator>Kazi Manzur Rashid</dc:creator><description>&lt;p&gt;Hi Omar, as Mehfuz said I see a number of benifits of Action Filters over HttpModules, but before that just want to correct that You can apply the action filter on the Controller which in turn applies to all the action/public methods, it is not required to decorate method. &lt;/p&gt;
&lt;p&gt;1. I do not have to stick with a Fixed Cache Duration.&lt;/p&gt;
&lt;p&gt;2. Unable to exclude or need to have some kind of rule engine to exclude it from caching.&lt;/p&gt;
&lt;p&gt;3. One of the main reason of MVC becoming so poplular is TDD, with HTTPModules it is harder and sometime impossible to fit in TDD.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1639363" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1639072</link><pubDate>Wed, 02 Jul 2008 06:52:03 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1639072</guid><dc:creator>omar</dc:creator><description>&lt;p&gt;Hi Mehfuz,&lt;/p&gt;
&lt;p&gt;ActionFilter is a great way to selectively enable compression on some requests. My solution turns on compression for all requests. This way you don&amp;#39;t need to include the filter attribute on all action methods.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1639072" width="1" height="1"&gt;</description></item><item><title>re: Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems</title><link>http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx#1639066</link><pubDate>Wed, 02 Jul 2008 05:06:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1639066</guid><dc:creator>Scott Hanselman</dc:creator><description>&lt;p&gt;Fantastic post!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1639066" width="1" height="1"&gt;</description></item></channel></rss>