i try to login this error show (Cannot open database "aspnetdb" requested by the login)
<p>i use membership class in asp.net4 and i create report page in report folder that have 
web.config file :</p>

<pre><code>enter code here

 &lt;?xml version="1.0"?&gt;
   &lt;configuration&gt;

    &lt;system.web&gt;
      &lt;authorization&gt;
        &lt;deny users="?" /&gt;
        &lt;allow roles="report" /&gt;
        &lt;allow roles="administrator"/&gt;`
       &lt;deny users="*"/&gt;
      &lt;/authorization&gt;

    &lt;/system.web&gt;
   &lt;/configuration&gt;
</code></pre>

<p>and see web.config file in root folder :</p>

<pre><code>enter code here

  &lt;?xml version="1.0"?&gt;

    &lt;!--
        For more information on how to configure your ASP.NET application, please visit
          http://go.microsoft.com/fwlink/?LinkId=169433
       --&gt;

        &lt;configuration&gt;
        &lt;connectionStrings&gt;
          &lt;remove name="LocalSqlServer" /&gt;
          &lt;add name="LocalSqlServer" connectionString="Data Source=(local);
          Integrated Security=true;Initial Catalog=myapp;"
           providerName="System.Data.SqlClient" /&gt;

      &lt;/connectionStrings&gt;
      &lt;system.web&gt;
         &lt;roleManager enabled="true" /&gt;
         &lt;authentication mode="Forms"&gt;
         &lt;forms loginUrl="index.aspx" timeout="20"    /&gt;
         &lt;/authentication&gt;
         &lt;compilation debug="true" targetFramework="4.0" /&gt;
       &lt;/system.web&gt;
       &lt;appSettings&gt;
         &lt;add key="first" value="administrator"/&gt;
          &lt;add key="second" value="report"/&gt;
       &lt;/appSettings&gt;

       &lt;/configuration&gt;
</code></pre>

<p>my problem is when i try log in to report page by report role everything good but i try log in to report page by administrator role this error show(Cannot open database aspnetdb requested by the log in)</p>
