title: Having to login twice to asp.net application due to "Default Document" in IIS
body: <p>Previously, I had added <strong>login.aspx</strong> to the <strong>Default Document</strong> section in IIS.</p>
  
  <p>However, when someone was accessing the application, it was required to <em>login twice</em>. The first one wouldn't say any error message or no redirection to the next page in the application. And the second one would actually redirect the user to the expected page. And the user was using the right credentials both times.</p>
  
  <p>As soon as I deleted <strong>login.aspx</strong> from the <strong>Default Document</strong> section in the IIS, and the user provided the full link to the application (~/login.aspx), the problem was gone as it was only required to login once.</p>
  
  <p>Does anyone know why this is happening?</p>