title: ASP.NET: This method cannot be called during the application's pre-start initialization stage
body: <p>I'm trying to get an ASP.NET MVC 3 site running on IIS 6.0. </p>
  
  <p>Currently when I request a page from the server it gives the following error:</p>
  
  <blockquote>
    <p>Parser Error Message: This method cannot be called during the application's pre-start initialization stage.</p>
  </blockquote>
  
  <p>on this line:</p>
  
  <pre><code>&lt;add name="MyMembershipProvider" type="NS.MyMembershipProvider" connectionStringName="MyDatabase" applicationName="/MySite"/&gt;
  </code></pre>
  
  <p>I'm completely stumped and don't have much of a clue about the ASP.NET application lifecycle, let alone the differences between 6.0 and 7.0. Reading through the MSDN pages on it hasn't seemed to help much. </p>
  
  <p>Does anyone have any insight or any good links for investigation? :)</p>