[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1385
  • Last Modified:

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.
0
siddharthkool
Asked:
siddharthkool
  • 4
  • 3
1 Solution
 
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
 
khyer123Commented:
Yes, it sounds like it is. You need some sort of server to connect to.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
 
jinalCommented:
did you configure connection string in web.config ?

It should be first connectino string in web.config.
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now