I think you may be confusing the Visual Studio tool with the behavior of a typical web server. Visual Studio allows you to set the startup page for debugging and testing. On the flip side, a web server has configured default documents (typically Default.aspx, index.html, etc).
Alberto has the idea by either checking authentication in the default page and then redirecting you to a login page. Another thing you can look at is using the built-in Asp.Net authentication/authorization functionality, where you can lock down all your pages except for the login. You can then provide a default redirect for unauthorized users that will bounce to login.aspx regardless of what page they try to visit. http://msdn.microsoft.com/en-us/library/ff647070.aspx will give you a basic idea of how this works in 2.0 Asp.NET. 4.0 is nearly identical minus the few unnecessary modules. You can set specific permissions on urls using the <location path="login.aspx"> configuration. You would drop a system.web and authorization to allow all users. For the default authorization, you would simply set deny users=* under <authorization>. Hope that helps! -Nathan 2011/10/5 Alberto León <leontis...@gmail.com> > The best way is continue using Default.aspx as start page. > In Default.asxp page_load method you should check if the user is logged / > authenticated. If not you should redirect to login.aspx > > Another option is put in Default.aspx a login controller... > > Please, read asp.net membership provider articles to have some knowleadge > about login patterns. > > > > 2011/9/22 nalinirrajan <nalinirra...@gmail.com> > >> Hello all, >> >> I had developed a project using Visual Studio Web developer Express >> edition. >> The startup page in the project was login.aspx. >> >> I am now using MonoDevelop. If I build the app and run it, it gives Server >> Error - Resources not found error. >> >> If I rename login.aspx to Default.aspx it works fine. >> >> Is there any way of keeping the file name as login.aspx and setting it as >> the startup page ? >> >> Regards, >> Nalini >> >> >> >> -- >> View this message in context: >> http://mono.1490590.n4.nabble.com/Can-Default-aspx-be-renamed-tp3832951p3832951.html >> Sent from the Mono - ASP.NET mailing list archive at Nabble.com. >> _______________________________________________ >> Mono-aspnet-list mailing list >> Mono-aspnet-list@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list >> > > > _______________________________________________ > Mono-aspnet-list mailing list > Mono-aspnet-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list > >
_______________________________________________ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list