Click here to Skip to main content
15,889,887 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I am using Login control in asp.net then the following error comes. Could you suggest me how to resolve the problem?

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.


Also can you tell me how to configure aspnet_regsql command-line utility?
Posted
Updated 2-Dec-10 1:27am
v2
Comments
Baji Jabbar 2-Dec-10 7:03am    
Did u have the data server files in app data folder

Login control in asp.net (starting from .NET 2.0 framework) uses the built-in Membership functionality.

This is the link for you to read and implement:

http://msdn.microsoft.com/en-us/library/ff648345.aspx[^]

Good luck.
 
Share this answer
 
Hi Mohit,

Follew this menu to use command prompt.

Microsoft Visual studio 2008 -> Visual Studio Tools -> Microsoft Visual studio command prompt.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900