views:

23

answers:

0

Hi, what could possibly be the explanation for this?

An ASP.NET MVC website, with one sub-application pointing at a different physical path.

After upgrading from IIS6 to IIS7, all is fine for an hour or so. Suddenly, requests for certain paths within the sub-application return the content for the "equivalent" path in the parent application. Stay with me! For example:

http://example.com/subapp/hello.aspx

returns the content of the page

http://example.com/hello.aspx

In fact, it seems that any equivalent path which exists in the parent application is chosen instead of the correct resource in the sub-application.

This is not an incorrectly-configured redirect or something - the server is acting as though the request were to the parent application.

This works fine!

http://example.com/subapp/helloCOPY.aspx

If I restart the parent application by touching the Web.config, the problem goes away for an hour or so!

Could the MVC routing mechanism in the parent application be taking precedence over the configured virtual application?