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
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.
Right click on the web page you want to use as the default page and choose "Set as Start Page" whenever you run the web application from Visual Studio, it will open the selected page.