只需在Global.asax.cs文件中增加以下即可,无需在IIS默认文档设置默认html页面。
protected void Application_BeginRequest(object sender, EventArgs e) { if (Context.Request.FilePath == "/")
Context.RewritePath("index.htm");
}