Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

The attribute connectionstringName is missing or empty

$
0
0

Hi Friends,
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.
 
What could be the problem?

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



Viewing all articles
Browse latest Browse all 3561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>