Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection sql to membershipprovider

Status
Not open for further replies.

ItHurtsWhenIThink

Technical User
Sep 1, 2007
60
US
I just can not seem to get this up and gong.

Using Visual Studio Pro on net 3.5

ERROR: The following message may help in diagnosing the problem: The connection name 'FormsDemoConnectionString' was not found in the applications configuration or the connection string is empty. (M:\MyProjects\EFFA\EFFA\web.config line 29)

Config file: (parts)

<appSettings>
<add key="connString" value="SERVER=XXX.XX.XXX.XX,XXXX; DATABASE=effaDATA; UID=XXX; PWD=XXX"/>
</appSettings>

<authentication mode="Forms"/>

<membership>
<providers>
<add name="FormsDemoSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider,System.Web, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="FormsDemoConnectionString"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>




 
makes sense, it's looking for the connection string in the connectionString configuration section, not the appSettings configuration section. I quick google search will provide the details.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top