Before change:
I have website local.Mywebsite.com
hosted in my Local IIS 7.5.The website is running in .net version 4.0 and IIS app pool is in Integrated pipeline mode. It is working perfectly fine.
I am able to Browse the local.Mywebsite.com/default.aspx as local.Mywebsite.com It means IIS serving the default document as i configured.
The Change:
I had a requirement to include another application Foo to My website as virtual directory.I added that and am able to Browse and use the same with complete path as local.Mywebsite.com/Foo/Mypage.aspx.
Then i configured a default document for my Foo virtual directory.
MY issue:
I try to browse to local.Mywebsite.com/Foo/
I got an error:
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies)
could have been removed, had its name changed, or is temporarily unavailable.
Please review the following URL and make sure that it is spelled correctly.
Now IIS is not serving default document for my Foo virtual directory.
But still am able to browse local.Mywebsite.com, IIS serves default document here.
Any one have any idea or any suggestions are highly appreciated.
Update:
When i Rename the file Mypage.aspx in to Default.aspx, then IIS serves the default document pretty fine. Am able to see the default.aspx page by browsing local.Mywebsite.com/Foo/.
My Web config:
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Mypage.aspx" />
</files>
</defaultDocument>
classical pipeline mode
– Arun Chandran C/Foo
? – Kevdefault.aspx
: deafualt.aspx and defualt.aspx, are these just typo's in your question? – Kev