KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an ASP.NET MVC application where the default page should be index.html which is an actual file on disk. I can browse to the file using www.mydomain.com/index.html so I know it will be served and exists but if I use www.mydomain.com I get a 404. I have ensured that the default document is correctly set in IIS7 and I have even gone so far as to commented out all the routes defined in my global.asax to ensure I don't have a route causing this problem. So to summarize: I have an index.html file on disk and IIS7 is set to use index.html as the default document. If I remove my ASP.NET MVC application and leave the index.html file is served as the default document as expected. If I publish my ASP.NET MVC application then the index.html doesn't get served by default document. Does anyone know how to get ASP.NET MVC to serve the default document?
Tags (comma-separated)
Save Edits
Cancel