I have a .NET web app that is being served in IIS7. In this web app ,there are a few different pages named default.aspx that live in some of the subdirectories of the site(one default.aspx for each subdirectory). The developer before me somehow rigged it so when a hyperlinklcontrol is clicked, it will reference only the subdirectory and not the default.aspx page within the subdirectory. (So on the hyperlink click there is a Respones.Redirect that points to "../subdirectory/")
On our production system (IIS 6) ,same web app,somehow IIS knows how to find the default.aspx of the subdirectory. Problem is I cannot achieve the same behavior on my local machine that uses IIS7. I am assuming IIS is where the issue lies but I am not 100% certain. I also went into the ASP settings in the features view and set "Enable Parent Paths" set to true.But I still get a 404 error with it saying it cannot find the default.aspx. It is there however.
Attached is code from the web.config which I believe helps achieve the desired behavior. This web app actually lives in a Virtual Directory under the Default Website .If anyone has any suggestions as to how to remedy I would be very appreciative.
Thanks
Jason
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<defaultDocument>
<files>
<clear />
<add value="default_loc.aspx" />
<add value="default.aspx" />
</files>
</defaultDocument>
<modules xmlns="">
</modules>
<directoryBrowse enabled="true" />
</system.webServer>