Atouray
asked on
Configuring sqlmembership provider
I am building webform application using VS2012EXPRESS. I want to implent the sqlmembership for this. I installed all the necessary objects on my db server.
when i try test the connect by going to Project ,ASP.NET Configuration,provider tab.
Click on test i receive this error:
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
What is the cause? i have attached my webconfig
CONFIG.txt
when i try test the connect by going to Project ,ASP.NET Configuration,provider tab.
Click on test i receive this error:
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
What is the cause? i have attached my webconfig
CONFIG.txt
ASKER
i definately have a correct connection string. here is it:
<connectionStrings>
<clear/>
<add name="db_connection" providerName="System.Data. SqlClient" connectionString="Data Source=myipaddresshere;Int egrated Security=true;Initial Catalog=aspnetdb;User ID=sysad;Password=abc@123" />
</connectionStrings>
<connectionStrings>
<clear/>
<add name="db_connection" providerName="System.Data.
</connectionStrings>
ASKER
i have provided a connection name for my connectionstring.This is a valid one.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you
connectionStringName="db_c
You need something that defines the connection more definitively:
http://www.connectionstrings.com/sql-server-2005
http://www.connectionstrings.com/sql-server-2012
i.e.
Server=myServerAddress;Dat
etc. Review the link I provided to see how this is done.