asp.net+iis配置默认打开文档

1.在iis管理器中,功能视图,默认文档,添加。即可

2.在web.config中添加

<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <add value="index.asp" />
            </files>
        </defaultDocument>

    </system.webServer>
</configuration>

3.二者只能设置其中之一,不能重复设置,否则会出错:

猜你喜欢

转载自blog.csdn.net/qq_37370501/article/details/81449938
今日推荐