0
Answer

App.Config not working

Zafar

Zafar

19y
1.7k
1

Hi,
   I have added new App.config file in my project and written this code,

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <appSettings>
      <add key="ConnectionString" value="data source=myserver;initial catalog=Apps;Integrated Security=SSPI;packet size=4096" />
   </appSettings>
</configuration>

I am trying to set "ConnectionString" as global variable. When i run this project somehow it does not  create the
.exe file for this app.config file. When i try to access value of ConnectionString in other templates it shows "Null".....
Any Help will be appreciated.........

Regards,
Zafar

Next Recommended Forum