Answer the question
In order to leave comments, you need to log in
Why is there no connection?
DB on sqlExpress, connection in vs.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=Proxy;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
</configuration>
string connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
Console.WriteLine(connectionString);
ConfigurationManager.ConnectionStrings["ConnectionName"].ConnectionString возвращает null?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question