Using the following steps:
(I have checked this similar post, which does not solve my problem.)
- Under Windows Server 2003/IIS6, I create a new site called "testapp"
- In VS2010, I create a new ASP.NET MVC 2 application.
I add a view called "Info" with the following code:
<h2>System</h2> <h3>Request</h3> <% foreach (string key in Request.Headers) { Response.Write(string.Format("<p>{0}={1}</p>" , key , Request.Headers[key]) ); } %>
In addition to the standard headers I see this one:
X-REWRITE-URL=/home/info/eurl.axd/e3299f29f8043d4f8a27e0f1d0c40971
I am using Helicon ISAPI Rewrite 3, which is generating the "X-REWRITE-URL" header.
My problem is this: where is the /eurl.axd?....
coming from? I've seen this article, but since this is a blank app in a new folder with a new app pool, there are NO 2.0.* apps running within this web folder. There are no virtual folders pointing at another directory, etc. The site is configured for ASP.NET 4.0, which is registered correctly.
The problem is that the eurl.axd is screwing with parameters in my MVC routes.
The options in the "ASP.NET 4.0 Breaking Changes" article don't really work for me, because there aren't any 2.0 components in this app, and I can't use extensionless URLs.
Update I've just noticed that System.Web.MVC in the GAC is version 2.0.0.0. Should this have been updated to 4.0 with the installation of VS2010 and the 4.0 framework?
I don't understand why I'm seeing this error with a default ASP.NET MVC 2 application. Help!!