title: web.config error
body: <p>Hello everyone can someone help me with my web.config file? I am having error. I just want you guys to look at it and if there are errors someone that needs correction. Thank you all:</p>
  <p>This is the error message:</p>
  <blockquote>
  <p>Warning    1   The 'targetFramework' attribute is not declared.    G:\display images in gridview\Web.config    17  62  Miscellaneous Files</p>
  <p>Message    2   Could not find schema information for the element 'modules'.    G:\display images in gridview\Web.config    51  7   Miscellaneous Files</p>
  <p>Message    3   Could not find schema information for the attribute 'runAllManagedModulesForAllRequests'.   G:\display images in gridview\Web.config    51  15  Miscellaneous Files</p>
  <p>Error  4   The 'configuration' start tag on line 10 does not match the end tag of 'system.web'. Line 101, position 4. (C:\Users\Collins\Documents\Visual Studio 2005\WebSites\living to please god world\web.config line 101)</p>
  </blockquote>
  <p>Here is the Web.config file:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;configuration&gt;
  &lt;connectionStrings&gt;
      &lt;add name=&quot;ConnectionString&quot; 
               connectionString=&quot;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True&quot;
               providerName=&quot;System.Data.SqlClient&quot;/&gt;
  &lt;/connectionStrings&gt;
  &lt;system.web&gt;
      &lt;customErrors mode=&quot;Off&quot;/&gt;
      &lt;compilation debug=&quot;true&quot;/&gt;
  &lt;/system.web&gt;
  &lt;pages&gt;
      &lt;namespaces&gt;
          &lt;clear/&gt;
          &lt;add namespace=&quot;System&quot;/&gt;
          &lt;add namespace=&quot;System.Collections&quot;/&gt;
          &lt;add namespace=&quot;System.Collections.Specialized&quot;/&gt;
          &lt;add namespace=&quot;System.Configuration&quot;/&gt;
          &lt;add namespace=&quot;System.Text&quot;/&gt;
          &lt;add namespace=&quot;System.Text.RegularExpressions&quot;/&gt;
          &lt;add namespace=&quot;System.Web&quot;/&gt;
          &lt;add namespace=&quot;System.Web.Caching&quot;/&gt;
          &lt;add namespace=&quot;System.Web.SessionState&quot;/&gt;
          &lt;add namespace=&quot;System.Web.Security&quot;/&gt;
          &lt;add namespace=&quot;System.Web.Profile&quot;/&gt;
          &lt;add namespace=&quot;System.Web.UI&quot;/&gt;
          &lt;add namespace=&quot;System.Web.UI.WebControls&quot;/&gt;
          &lt;add namespace=&quot;System.Web.UI.WebControls.WebParts&quot;/&gt;
          &lt;add namespace=&quot;System.Web.UI.HtmlControls&quot;/&gt;
      &lt;/namespaces&gt;
  &lt;/pages&gt;
  &lt;membership&gt;
      &lt;providers&gt;
          &lt;clear/&gt;
          &lt;add name=&quot;AspNetSqlMembershipProvider&quot; type=&quot;System.Web.Security.SqlMembershipProvider&quot; connectionStringName=&quot;LocalSqlServer&quot; enablePasswordRetrieval=&quot;false&quot; enablePasswordReset=&quot;true&quot; requiresQuestionAndAnswer=&quot;false&quot; requiresUniqueEmail=&quot;false&quot; maxInvalidPasswordAttempts=&quot;5&quot; minRequiredPasswordLength=&quot;6&quot; minRequiredNonalphanumericCharacters=&quot;0&quot; passwordAttemptWindow=&quot;10&quot; applicationName=&quot;/&quot;/&gt;
      &lt;/providers&gt;
  &lt;/membership&gt;
  &lt;profile&gt;
      &lt;providers&gt;
          &lt;clear/&gt;
          &lt;add name=&quot;AspNetSqlProfileProvider&quot; type=&quot;System.Web.Profile.SqlProfileProvider&quot; connectionStringName=&quot;LocalSqlServer&quot; applicationName=&quot;/&quot;/&gt;
      &lt;/providers&gt;
  &lt;/profile&gt;
  &lt;authentication mode=&quot;Forms&quot;&gt;
      &lt;forms loginUrl=&quot;login.aspx&quot; defaultUrl=&quot;Default.aspx&quot;/&gt;
  &lt;/authentication&gt;
  &lt;authorization&gt;
      &lt;allow users=&quot;*&quot;/&gt;
  &lt;/authorization&gt;
  &lt;location path=&quot;PhotoAdmin&quot;&gt;
      &lt;system.web&gt;
          &lt;authorization&gt;
              &lt;deny users=&quot;?&quot;/&gt;
          &lt;/authorization&gt;
      &lt;/system.web&gt;
  &lt;/location&gt;
  &lt;system.net&gt;
      &lt;mailSettings&gt;
        &lt;smtp from=&quot;some@example.com&quot;&gt;
          &lt;network host=&quot;relay-hosting.example.net&quot; password=&quot;&quot; userName=&quot;&quot;/&gt;
        &lt;/smtp&gt;
      &lt;/mailSettings&gt;
  &lt;/system.net&gt;
  &lt;/configuration&gt;
  </code></pre>