title: Html landing page in asp.net
body: <p>I have a html landing page for my asp.net website however i cannot give it to display it always goes to the login.</p>
  
  <p>What can i set in web.config to fix this?</p>
  
  <p>I have tried</p>
  
  <pre><code> &lt;authentication mode="Forms"&gt;
    &lt;forms defaultUrl="index.html" loginUrl="~/Account/Login.aspx" timeout="2880" /&gt;
  &lt;/authentication&gt;
  
   &lt;location path="index.html"&gt;
  &lt;system.web&gt;
    &lt;authorization&gt;
      &lt;allow users="?" /&gt;
    &lt;/authorization&gt;
  &lt;/system.web&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;defaultDocument&gt;
    &lt;files&gt;
      &lt;clear /&gt;
      &lt;add value="index.html" /&gt;
    &lt;/files&gt;
  &lt;/defaultDocument&gt;
  </code></pre>
  
  <p>All with no luck. Please help
  Thanks in advance</p>
  
  <p>Here is my full web.config</p>
  
  <pre><code> &lt;configuration&gt;
    &lt;connectionStrings&gt;
      &lt;!--&lt;add name="ApplicationServices" connectionString="Data Source=.\sqlexpress;Initial Catalog=ArctixDb;Integrated Security=SSPI;"/&gt;--&gt;
      &lt;add name="ApplicationServices" connectionString="" /&gt;
      &lt;add name="ArctixDbEntities" connectionString="" /&gt;
    &lt;/connectionStrings&gt;
    &lt;system.web&gt;
      &lt;customErrors mode="Off" /&gt;
      &lt;httpHandlers&gt;
        &lt;add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
          validate="false" /&gt;    
      &lt;/httpHandlers&gt;
      &lt;compilation debug="true" targetFramework="4.0"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
          &lt;add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
          &lt;add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
          &lt;add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
          &lt;add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
        &lt;/assemblies&gt;
        &lt;buildProviders&gt;
          &lt;add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;
        &lt;/buildProviders&gt;
      &lt;/compilation&gt;
      &lt;authentication mode="Forms"&gt;
        &lt;forms defaultUrl="index.html" loginUrl="~/Account/Login.aspx" timeout="2880" /&gt;
      &lt;/authentication&gt;
      &lt;membership&gt;
        &lt;providers&gt;
          &lt;clear/&gt;
          &lt;add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /&gt;
        &lt;/providers&gt;
      &lt;/membership&gt;
      &lt;profile&gt;
        &lt;providers&gt;
          &lt;clear/&gt;
          &lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt;
        &lt;/providers&gt;
      &lt;/profile&gt;
      &lt;roleManager enabled="false"&gt;
        &lt;providers&gt;
          &lt;clear/&gt;
          &lt;add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt;
          &lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /&gt;
        &lt;/providers&gt;
      &lt;/roleManager&gt;
      &lt;authorization&gt;
        &lt;deny users="?" /&gt;
      &lt;/authorization&gt;
    &lt;/system.web&gt;
    &lt;location allowOverride="true"&gt;
      &lt;appSettings&gt;
        &lt;add key="SMTPServer" value="" /&gt;
        &lt;add key="SMTPServerPort" value="25" /&gt;
        &lt;add key="SMTPServerSSL" value="false" /&gt;
        &lt;add key="SMTPUsername" value="" /&gt;
        &lt;add key="SMTPPassword" value="" /&gt;
        &lt;add key="SystemEmailAddress" value="" /&gt;
        &lt;add key="SystemEmailAddressName" value="" /&gt;
      &lt;/appSettings&gt;
    &lt;/location&gt;
    &lt;location path="Styles"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="?" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="Account"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="?" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="images"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="?" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="index.html"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
      &lt;defaultDocument&gt;
        &lt;files&gt;
          &lt;clear /&gt;
          &lt;add value="index.html" /&gt;
        &lt;/files&gt;
      &lt;/defaultDocument&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;handlers&gt;
        &lt;add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;
  
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>