Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Database Conection Issues.

$
0
0

Hi,

I am getting the following error when I attempt to connect to a database using the following from my WPF app. I have attached a screenshot of this error.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <connectionStrings>

    <add name="anConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\App_Data\an.mdf;Integrated Security=false;User Instance=false; user=sa;pwd=abc;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>

I have verified the account exists and the password is correct. I have tried using integrated security as well which results in a different error. I am unable to understand what causes this issue and have been working on it for several days now. Any help would be appreciated. 



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>