<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Running ASP.NET MVC Applications Under IIS6</title>
	<atom:link href="http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/feed/" rel="self" type="application/rss+xml" />
	<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/</link>
	<description>All Things .Net and Me</description>
	<lastBuildDate>Tue, 06 Jul 2010 04:32:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dmitriy Nagirnyak</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-193</link>
		<dc:creator>Dmitriy Nagirnyak</dc:creator>
		<pubDate>Wed, 30 Sep 2009 09:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-193</guid>
		<description>You forgot one more option: Just use normal .aspx extension for MVC pages and you don&#039;t need any configuration of the IIS at all.</description>
		<content:encoded><![CDATA[<p>You forgot one more option: Just use normal .aspx extension for MVC pages and you don&#8217;t need any configuration of the IIS at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Piegdon</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-139</link>
		<dc:creator>Scott Piegdon</dc:creator>
		<pubDate>Mon, 19 Jan 2009 03:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-139</guid>
		<description>Gotta tell ya, I was extremly excited when I saw this post.  One comment though, as it did cause a little frustration.  I do have access to my own box, and wanted to do as little as possible to my MVC framework, so I went with option 3.

I did however miss the step (only talked about in option 2) about adding .mvc to the aspnet MIME types.  Very important everyone.  It will save you some headaches, just wanted to make sure nobody else missed it.

THANK YOU very much!  This got me the last 1/4 mile in my MVC experimentation.</description>
		<content:encoded><![CDATA[<p>Gotta tell ya, I was extremly excited when I saw this post.  One comment though, as it did cause a little frustration.  I do have access to my own box, and wanted to do as little as possible to my MVC framework, so I went with option 3.</p>
<p>I did however miss the step (only talked about in option 2) about adding .mvc to the aspnet MIME types.  Very important everyone.  It will save you some headaches, just wanted to make sure nobody else missed it.</p>
<p>THANK YOU very much!  This got me the last 1/4 mile in my MVC experimentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-130</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 25 Nov 2008 00:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-130</guid>
		<description>Aha!  I figured out Option 2.  The second path needs to still be the old mapping, or the base address and Default.aspx won&#039;t work right.  Here&#039;s the corrected code:

&lt;code&gt;
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute(&quot;{resource}.axd/{*pathInfo}&quot;);

            routes.MapRoute(
                &quot;Default&quot;,                                              // Route name
                &quot;{controller}.aspx/{action}/{id}&quot;,                      // URL with parameters
                new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = &quot;&quot; }  // Parameter defaults
            );

            routes.MapRoute(
                &quot;Default2&quot;,                                              // Route name
                &quot;{controller}/{action}/{id}&quot;,                      // URL with parameters
                new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = &quot;&quot; }  // Parameter defaults
            );
        }
&lt;/code&gt;

The first one, Default, sets up the links so that they switch to having the .aspx extension (like Home.aspx).  The second setting allows the root site with no page and also Default.aspx to be remapped properly to the Home controller.</description>
		<content:encoded><![CDATA[<p>Aha!  I figured out Option 2.  The second path needs to still be the old mapping, or the base address and Default.aspx won&#8217;t work right.  Here&#8217;s the corrected code:</p>
<p><code><br />
        public static void RegisterRoutes(RouteCollection routes)<br />
        {<br />
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");</p>
<p>            routes.MapRoute(<br />
                "Default",                                              // Route name<br />
                "{controller}.aspx/{action}/{id}",                      // URL with parameters<br />
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults<br />
            );</p>
<p>            routes.MapRoute(<br />
                "Default2",                                              // Route name<br />
                "{controller}/{action}/{id}",                      // URL with parameters<br />
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults<br />
            );<br />
        }<br />
</code></p>
<p>The first one, Default, sets up the links so that they switch to having the .aspx extension (like Home.aspx).  The second setting allows the root site with no page and also Default.aspx to be remapped properly to the Home controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-129</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 24 Nov 2008 23:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-129</guid>
		<description>I am also trying option 2, and I am getting 404 errors when I try to run the site using IIS 6 or the web service project.  Here&#039;s my RegisterRoutes method:

&lt;code&gt;
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute(&quot;{resource}.axd/{*pathInfo}&quot;);

            routes.MapRoute(
                &quot;Default&quot;,                                              // Route name
                &quot;{controller}.aspx/{action}/{id}&quot;,                      // URL with parameters
                new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = &quot;&quot; }  // Parameter defaults
            );

            routes.MapRoute(
                &quot;Defaultest&quot;,
                &quot;Default.aspx&quot;,
                new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = &quot;&quot; }
            );

            RouteTable.Routes.RouteExistingFiles = true;
        }
&lt;/code&gt;

Any ideas what could be wrong?</description>
		<content:encoded><![CDATA[<p>I am also trying option 2, and I am getting 404 errors when I try to run the site using IIS 6 or the web service project.  Here&#8217;s my RegisterRoutes method:</p>
<p><code><br />
        public static void RegisterRoutes(RouteCollection routes)<br />
        {<br />
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");</p>
<p>            routes.MapRoute(<br />
                "Default",                                              // Route name<br />
                "{controller}.aspx/{action}/{id}",                      // URL with parameters<br />
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults<br />
            );</p>
<p>            routes.MapRoute(<br />
                "Defaultest",<br />
                "Default.aspx",<br />
                new { controller = "Home", action = "Index", id = "" }<br />
            );</p>
<p>            RouteTable.Routes.RouteExistingFiles = true;<br />
        }<br />
</code></p>
<p>Any ideas what could be wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schotime</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-128</link>
		<dc:creator>Schotime</dc:creator>
		<pubDate>Mon, 24 Nov 2008 09:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-128</guid>
		<description>@dez:

Just from looking quickly at your two attempts there looks like one distinct errors that may be causing the issue for option2.


Option2: 

&lt;code&gt;RouteTable.Routes.RouteExistingFiles = true;&lt;/code&gt;

That needs to be included as above.

As for option 1 not working i&#039;m not really sure. As long as you have set the aspnet_isapi.dll up as the default for all request then it should work. 

The Default.aspx file should be fine as the default document, as this should still exist in your website.</description>
		<content:encoded><![CDATA[<p>@dez:</p>
<p>Just from looking quickly at your two attempts there looks like one distinct errors that may be causing the issue for option2.</p>
<p>Option2: </p>
<p><code>RouteTable.Routes.RouteExistingFiles = true;</code></p>
<p>That needs to be included as above.</p>
<p>As for option 1 not working i&#8217;m not really sure. As long as you have set the aspnet_isapi.dll up as the default for all request then it should work. </p>
<p>The Default.aspx file should be fine as the default document, as this should still exist in your website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dez</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-127</link>
		<dc:creator>dez</dc:creator>
		<pubDate>Thu, 20 Nov 2008 17:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-127</guid>
		<description>I tried option 2 and a test.asp file loads fine but I cannot get any of my other MVC files to load, just 404 errors. So, then I tried option 1 and now I cannot even get the test.asp file to load. 

I’m running ASP.NET MVC Beta and pages load fine in my local web server inside VS2008. I&#039;m just trying to get the default page and Home/About to load. I’m deploying files using ftp, deleting all targets before publishing from VS 2008 SP1. Here is my Global.asax file using option 1:

public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute(”{resource}.axd/{*pathInfo}”);

routes.MapRoute(
“Default”, // Route name
“{controller}/{action}/{id}”, // URL with parameters
new { controller = “Home”, action = “Index”, id = “” } // Parameter defaults
);
}

protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
}

Here is what I used in my Global.asax file for Option 2:

public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute(”{resource}.axd/{*pathInfo}”);

routes.MapRoute(
“Default”, // Route name
“{controller}.aspx/{action}/{id}”, // URL with parameters
new { controller = “Home”, action = “Index”, id = “” } // Parameter defaults
);
routes.MapRoute(
“DefaultTest”, // Route name
“Default.aspx”, // URL with parameters
new { controller = “Home”, action = “Index”, id = “” } // Parameter defaults
);

}

protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
}

I’m have my site set up as a virtual directory under the Default web site. Should The Documents-Enable Default Content Page be set for ASP.NET MVC apps? If so what should the single file entry be if you want it to load the default page (Default, Default.aspx, /Home/Index)?</description>
		<content:encoded><![CDATA[<p>I tried option 2 and a test.asp file loads fine but I cannot get any of my other MVC files to load, just 404 errors. So, then I tried option 1 and now I cannot even get the test.asp file to load. </p>
<p>I’m running ASP.NET MVC Beta and pages load fine in my local web server inside VS2008. I&#8217;m just trying to get the default page and Home/About to load. I’m deploying files using ftp, deleting all targets before publishing from VS 2008 SP1. Here is my Global.asax file using option 1:</p>
<p>public class MvcApplication : System.Web.HttpApplication<br />
{<br />
public static void RegisterRoutes(RouteCollection routes)<br />
{<br />
routes.IgnoreRoute(”{resource}.axd/{*pathInfo}”);</p>
<p>routes.MapRoute(<br />
“Default”, // Route name<br />
“{controller}/{action}/{id}”, // URL with parameters<br />
new { controller = “Home”, action = “Index”, id = “” } // Parameter defaults<br />
);<br />
}</p>
<p>protected void Application_Start()<br />
{<br />
RegisterRoutes(RouteTable.Routes);<br />
}<br />
}</p>
<p>Here is what I used in my Global.asax file for Option 2:</p>
<p>public class MvcApplication : System.Web.HttpApplication<br />
{<br />
public static void RegisterRoutes(RouteCollection routes)<br />
{<br />
routes.IgnoreRoute(”{resource}.axd/{*pathInfo}”);</p>
<p>routes.MapRoute(<br />
“Default”, // Route name<br />
“{controller}.aspx/{action}/{id}”, // URL with parameters<br />
new { controller = “Home”, action = “Index”, id = “” } // Parameter defaults<br />
);<br />
routes.MapRoute(<br />
“DefaultTest”, // Route name<br />
“Default.aspx”, // URL with parameters<br />
new { controller = “Home”, action = “Index”, id = “” } // Parameter defaults<br />
);</p>
<p>}</p>
<p>protected void Application_Start()<br />
{<br />
RegisterRoutes(RouteTable.Routes);<br />
}<br />
}</p>
<p>I’m have my site set up as a virtual directory under the Default web site. Should The Documents-Enable Default Content Page be set for ASP.NET MVC apps? If so what should the single file entry be if you want it to load the default page (Default, Default.aspx, /Home/Index)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASP.NET MVC Archived Blog Posts, Page 1</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-41</link>
		<dc:creator>ASP.NET MVC Archived Blog Posts, Page 1</dc:creator>
		<pubDate>Mon, 20 Oct 2008 04:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-41</guid>
		<description>[...] to VoteRunning ASP.NET MVC Applications Under IIS6 (10/18/2008)Saturday, October 18, 2008 from SchotimeIn my MVC folder system I store all of these files under the [...]</description>
		<content:encoded><![CDATA[<p>[...] to VoteRunning ASP.NET MVC Applications Under IIS6 (10/18/2008)Saturday, October 18, 2008 from SchotimeIn my MVC folder system I store all of these files under the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Running ASP.NET MVC Applications Under IIS6 - Adam Schroder</title>
		<link>http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/comment-page-1/#comment-40</link>
		<dc:creator>Running ASP.NET MVC Applications Under IIS6 - Adam Schroder</dc:creator>
		<pubDate>Sat, 18 Oct 2008 10:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://schotime.net/blog/index.php/2008/10/18/running-aspnet-mvc-applications-under-iis6/#comment-40</guid>
		<description>[...] Here to read on.....  Schotime  Posted: Oct 18 2008, 09:18 PM by schotime &#124; with no [...]</description>
		<content:encoded><![CDATA[<p>[...] Here to read on&#8230;..  Schotime  Posted: Oct 18 2008, 09:18 PM by schotime | with no [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
