G
Guest
Hello,
this code does not return connection string
string connStr =
ConfigurationManager.AppSettings["myDBConnectionString"];
app.config
<connectionStrings>
<add name="PVS.Properties.Settings.myDBConnectionString"
connectionString="Data Source=MyServer;Initial Catalog=myDB;User
ID=myUser;Password=myPassword"
providerName="System.Data.SqlClient" />
</connectionStrings>
What is wrong?
this code does not return connection string
string connStr =
ConfigurationManager.AppSettings["myDBConnectionString"];
app.config
<connectionStrings>
<add name="PVS.Properties.Settings.myDBConnectionString"
connectionString="Data Source=MyServer;Initial Catalog=myDB;User
ID=myUser;Password=myPassword"
providerName="System.Data.SqlClient" />
</connectionStrings>
What is wrong?