I'm having a similar problem in a web service, but from what I can find, things look ok.
This is part of my web.config:
And after this line executes, myConnectionString is still nullCode:<appSettings> <add key="database_connection_string" value="Persist Security Info=False;Integrated Security=SSPI;database=Patriot;server=MIKELAP"/> </appSettings> </configuration>
What am I missing?Code:myConnectionString = ConfigurationSettings.AppSettings["database_connection_string"];




Reply With Quote