Unable to connect to SQL Server database.

i am using visual studio 2008 and i want to apply membership controls to my website .

so i opned my project went to website->asp.ner configiration->security

and i am getting following errors...

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.


what is the problem can you  please tell me ??

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
siddharthkoolAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jinalConnect With a Mentor Commented:
did you configure connection string in web.config ?

It should be first connectino string in web.config.
0
 
khyer123Commented:
-Can you reach your SQL server from your web server?
-Do you have proper authentication configured?
0
 
siddharthkoolAuthor Commented:
i have not downloaded sql 2005 or 2008 ..


is it required ??
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
khyer123Commented:
Yes, it sounds like it is. You need some sort of server to connect to.
0
 
siddharthkoolAuthor Commented:
ok thanks i will install 2008 and see what happens...
0
 
khyer123Commented:
Doesn't Visual Studio come with some version of a SQL server (like an express edition)? I haven't used 2008, but in 2005 it does. This is unless, of course, you specified the SQL server being somewhere else.
0
 
siddharthkoolAuthor Commented:
yes visual studio 2008 comes with sql server 2008
 but still there is problem as follows : :

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.


what is the problem can you  please tell me ??
0
 
siddharthkoolAuthor Commented:
i want to go to

start new website in visual studio 2008 , then go to


website ---> asp.net configuration----->settings


and then i want to add membership but giving errors...plz help whats wrong...

do i have to change any ports settings

or do i have to make any new configuration ??
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.