title: .NET 4.0 Forms Authentication change?
body: <p>I'm seeing some new behavior in Forms Authentication after upgrading to .NET 4.0.  This occurs only on IIS 6, not on 7.</p>
  
  <p>Background - In web.config, we configure Forms Authentication, and then use <code>&lt;authorization</code>> tags to globally deny anonymous/unauthenticated users access. Then we explicitly allow access to a login.aspx page using a <code>&lt;location</code>> tag.  Generally, this works fine, as it did when we were on .NET 2.0 (3.5).</p>
  
  <p>The issue only occurs when we visit the root path of the site, ie "<a href="http://myserver/" rel="nofollow noreferrer">http://myserver/</a>".  Our default document is configured in IIS to be login.aspx.  Under .NET 4.0, upon visiting that URL, we're redirected to "<a href="http://myserver/login.aspx?ReturnUrl=/" rel="nofollow noreferrer">http://myserver/login.aspx?ReturnUrl=/</a>".  If you log in from here, you're logged in and returned back at the log in page (yuck).</p>
  
  <p>Just wanted to post this here to see if anyone else is experiencing this.  It's not listed on any "breaking changes" documentation I've been able to find.  Either I'm missing something, or the UrlAuthorization module has changed and is no longer "smart" about IIS default documents.</p>