Skip to content

ASP.NET Conficuration Security: Unable to to connect to

p n

Asked Jan 4, 2015, 8:50 PM EST1 answer
Share
LinkedInX
 I am developing an ASP.NET application using MS VS 2013 and MS SQL Server 2014. When i start ASP.NET Web Site Administration Tool by CMD and click on security tab, I get below error: " 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. "
my web.config setting:
    <configuration>
     <connectionStrings>
     <add name="newsdbConnectionString" connectionString="Data Source=(LocalDB)\v11.0;    AttachDbFilename=|DataDirectory|\newsdb.mdf;Integrated Security=True;Connect     Timeout=30"
     providerName="System.Data.SqlClient" />
     </connectionStrings>
     <system.web>
     <compilation debug="true" targetFramework="4.5">
     <assemblies>
     <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral,     PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
     </compilation>
      <httpRuntime targetFramework="4.5"/>
     </system.web>
      </configuration>


What is the problem .
 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Vithal Wadje
    0
    its an database connection path issue which you have referenced ,check whether the your database is connected to sql
    0