I have a legacy Classic ASP application that I'm in the process of migrating to ASP.NET MVC 3. I have them running side-by-side in a virtual directory in IIS 6 (Windows 2003).
In my HomeController I have a single action:
public RedirectResult Index()
{
// go to our Classic ASP application for the time being.
return Redirect("/default.asp");
}
This is supposed to redirect the user to default.asp, where the Classic ASP application starts. However, when I hit the root of the site in the browser, I get a 302 Redirection Loop between '/' and '/default.asp'.
If I go directly for '/default.asp' everything works fine.
I've put some debug code in the top of default.asp to just print out some text and stop (in case it was causing the 302) but it would appear that IIS never actually processes the file.
Any ideas?