Modifications in default document won't take effect

Posted by Wilson on Stack Overflow See other posts from Stack Overflow or by Wilson
Published on 2010-03-18T14:48:18Z Indexed on 2010/05/29 22:02 UTC
Read the original article Hit count: 240

Filed under:
|

We have a website developed by ASP.NET+IIS7 and its default document is default.aspx. It works fine. But when we tried to switch the default to index.html, weird things happened.

We have modified web.config as follows: <defaultDocument> <files> <clear /> <add value="index.html" /> </files> </defaultDocument>

and we have clear everything under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files``, and restart the worker process. We even changed the name of Default.aspx to dddd.aspx.

But everything stays the same when accessing with http://localhost/<MyAppName>/!

And when we tried to access with http://localhost/<MyAppName>/index.html, it works fine.

Any suggestions would be highly appreciated.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about iis7