Click here to Skip to main content
15,921,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my web.config:

XML
<configuration>
  <connectionStrings>
    <add name="con" connectionString="Data Source=SREEKANTH; Initial Catalog=Northwind; Integrated Security=True"/>
  </connectionStrings>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
      <authentication mode="Forms">
        <forms name="/.ASPXAUTH" defaultUrl="~/Default.aspx" loginUrl="~/login.aspx" slidingExpiration="true" timeout="20"></forms>
      </authentication>
    </system.web>
</configuration>


I am getting an error like this:

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.


Thank you.
Posted
Updated 19-Apr-12 5:47am
v2

1 solution

Hi,
My suggestion is to test your connection using Server Explorer and if your connection was successful, then, paste it's connection string in your web config.

Cheers
 
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