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 to share