I wish this helpful for you After Googling I found this one as a solution. Its unrelated but some commented its working. Can you please try this. In the Windows registry, open the following node: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0
Is there an elegant way to redirect Default.aspx to either Home.aspx or Login.aspx?
I hope this helps you . In my opinion, the most elegant way to do this is to make use of web.config. You can specify, the login page here that the unauthenticated user will automatically be redirected to:
fixed the issue. Will look into that further It works, it just makes the application harder to maintain with code so many places. It is best to leave the aspx files for presentation and the .vb files for logic.