Zafar

Zafar

  • NA
  • 2
  • 0

App.Config not working

Oct 26 2005 2:56 PM

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