开发者

Modifications in default document won't take effect

开发者 https://www.devze.com 2022-12-24 10:37 出处:网络
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 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 res开发者_运维技巧tart 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.


You have to change your IIS Website Settings. The order in which the documents will be served.

You problably have
Default.aspx
Index.html

It should be
Index.html
Default.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消