The attribute connectionstringName is missing or empty
<p>I am getting this exception when trying to get or create a user using Membership or Profile.Here is my web.config code.I am using VS2010 Framework 4.0.</p>

<p>What could be the problem?</p>

<pre><code>    &lt;connectionStrings&gt;
    &lt;add name="classConnectionString" connectionString="Data Source=MINHAS\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True"/&gt;
&lt;/connectionStrings&gt;
    &lt;profile defaultProvider="MyProvider"&gt;
        &lt;properties&gt;
            &lt;add name="Name" type="System.String"/&gt;
            &lt;add name="ID" type="System.String"/&gt;
            &lt;add name="Color" type="System.String"/&gt;
        &lt;/properties&gt;
        &lt;providers&gt;
            &lt;clear/&gt;
            &lt;add name="MyProvider" type="System.Web.Profile.SqlProfileProvider" connnectionStringName="classConnectionString" applicationName="/"/&gt;
        &lt;/providers&gt;
    &lt;/profile&gt;
    &lt;membership defaultProvider="MyProvider"&gt;
        &lt;providers&gt;
            &lt;add name="MyProvider" connnectionStringName="classConnectionString" type="System.Web.Security.SqlMembershipProvider" applicationName="/" enablePasswordRetrieval="true" enablePasswordReset="true" passwordFormat="Encrypted" requiresQuestionAndAnswer="true"/&gt;
        &lt;/providers&gt;
    &lt;/membership&gt;
</code></pre>
