Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hello All,

I want to use ASP.Net Website administration tool for using membership in my web site, for this when i am clicking on security tab , it is showing following error,

SQL
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.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.



so , i am unable to use website adminitartion tool, suggest me solution to resolve this error..
Posted

Hi there,

Reading that final bit of the error message:
"Unable to connect to SQL Server database."
Suggests that the connection string you are using to try and connect to your database is probably incorrect or you have not put in the necessary security credentials (i.e. username & password). Therefore, I suggest you check your connection string. If you have SQL Management Studio or even Visual Studio's database management panel (not sure of its exact name - something like "Servers" or "Databases"), connect to your database through one of those then copy the connection string. In SQL Management Studio you will have to go hunting the in the connection properties, in Visual Studio you should be able to right click on the connection (in the servers panel) and then get the connection string quite easily. Then use this as your connection string in your configuration.

However, there may be other security or connection issues. For instance if you connect from your development machine you may have internal access to your database but if your site is running on a web server somewhere externally (i.e. not in your database server's local network), it may not have access. If your database is run outside of your development machine's local network this will not be an issue.

Hope this helps,
Ed
 
Share this answer
 
Comments
abhishekagrwl25 11-Apr-12 3:59am    
thank you sir, but i have solved it myself and yes there was the problem with connection string i was using..
Ed Nutting 11-Apr-12 4:03am    
Good for you :) Since my answer was the answer to your issue, please could you accept it to let other CP users know that this was your solution (or at least correct identification of the problem, whether or not you used my method).

Thanks,
Ed
abhishekagrwl25 11-Apr-12 4:19am    
i have accepted it sir

thanks
abhishek
Ed Nutting 11-Apr-12 4:20am    
Thank you :)
There was a problem with connection string.
 
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