Setting the default page for ASP.NET (Visual Studio) server configuration

前端 未结 8 790
北荒
北荒 2020-12-05 13:38

When I build and run my application I get a directory listing in the browser (also happens for sub folders), and I have to click on Index.aspx. It\'s makin

8条回答
  •  臣服心动
    2020-12-05 14:19

    If you are running against IIS rather than the VS webdev server, ensure that Index.aspx is one of your default files and that directory browsing is turned off.

提交回复
热议问题