I've inherited an ASP.NET application that contains a login screen. When you first start up, or you haven't done anything for a while, it comes up. It turns out we don't need this extra layer of security, and I'm trying to remove it. I thought I removed the code that was doing the redirecting, but it's still going to the login page, even though I've told the app to use default.aspx as the start page, and ensured that default.aspx contains no code that should trigger the redirect (it's using a master page, but the master page also contains nothing that should be redirecting). Where else might it be redirecting to the login page?
+3
A:
Look for <authentication>
sections (should be under <location>
sections) in your web config and delete them
Matt Briggs
2009-02-13 22:09:02
It was set to mode="Windows". I deleted it, and also tried setting it to None, but it still directs me to the login page.
gfrizzle
2009-02-17 15:34:05
+2
A:
Sounds like it could be forms authentication in effect.
In the web.config file change the authentication mode value to none
and see if that makes a difference.
<authentication mode="none" />
Martynnw
2009-02-13 22:11:01
A:
Found the problem. Even though I thought I had all the redirect code removed, there was still some buried in a user control on the default page. Removing that allowed me to bypass the login screen. So, I can't mark any of the responses as the answer, but I gave them all up votes as they were all good answers.
gfrizzle
2009-02-17 15:45:39