Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2009, 02:37 PM
Friend of Wrox
 
Join Date: Mar 2008
Posts: 133
Thanks: 15
Thanked 1 Time in 1 Post
Send a message via ICQ to iceman90289 Send a message via AIM to iceman90289
Default Ho

Code:
<membership defaultProvider="MyMembership">
   	<providers>
   	<add name="MyMembership" minRequiredNonalphanumericCharacters="0" type="System.Web.Security.SqlMembershipProvider" 
connectionStringName="Data Source=.\SQLExpress;Persist Security Info=True;Integrated Security=SSPI;Initial Catalog=iceman90289_ASPNETDB" requiresQuestionAndAnswer="false" requiresUniqueEmail="True"/>
</providers>

its complaining about the red and idk what is the problem. im kind of starting to give up and start over...

Parser Error Message: The connection name 'Data Source=.\SQLExpress;Persist Security Info=True;Integrated Security=SSPI;Initial Catalog=iceman90289_ASPNETDB' was not found in the applications configuration or the connection string is empty.

in actuality i dont even think i know what my problem is. here is the link to my site

http://aspspider.ws/iceman90289/
 
Old February 19th, 2009, 02:58 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

When adding a provider the value connectionStringName expects the NAME of a connection string already in your web.config.

Example

xml Code:
...
<connectionStrings>
<add name="myconnection" connectionString="Data Source=.\SQLExpress;Persist Security Info=True;Integrated Security=SSPI;Initial Catalog=iceman90289_ASPNETDB" providerName="System.Data.SqlClient"/>
</connectionStrings>
...
 
<membership defaultProvider="MyMembership">
    <providers>
    <add name="MyMembership" minRequiredNonalphanumericCharacters="0" type="System.Web.Security.SqlMembershipProvider"
connectionStringName="myconnection" requiresQuestionAndAnswer="false" requiresUniqueEmail="True"/>

</providers>
</membership>

hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ho can i name the database dynamicly bex BOOK: Beginning ASP.NET 2.0 and Databases 10 February 3rd, 2009 03:08 PM
Ho do we store pictures in a database? vitalis PHP Databases 2 March 18th, 2007 12:05 PM
Ho to write Macro??? keepsmiling_sruti Excel VBA 1 July 22nd, 2005 07:45 AM
Ho to do nested if statements scoobie PHP How-To 2 April 24th, 2005 06:22 AM
how i use the Stored Procedure return value and ho yoord ADO.NET 5 June 28th, 2004 08:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.