Default.aspx is used when debugging locally

Any ideas why the built-in asp.net web server insists on serving "/default.aspx" whenever you browse the root "/"?

Even if you force global.asax to "/" whenever "/default.aspx" is found, it will see "/" as a request to "/default.aspx" and an endless loop will follow!

Does anyone have a way to get around this behavior?

+1


source to share


2 answers


I'm assuming you're talking about Cassini (one Visual Studio comes with development) - if so, you're out of luck, because you can't change the default document (or you don't know in any way anyway).



To get around this, you can configure your project to install IIS locally - this will give you more control over directory browsing, default documents, etc.

+1


source


If you are using web projects (with Visual Studio 2005 SP1 or 2008), you can change the start page that appears when you start debugging from visual studio. You can change this on the Web tab of the project properties pages under the Action section.



-Edoode

0


source







All Articles