URGENT - C# Windows App Config File
Posted on 2005-04-24
For Some reason my windows app isn't pulling the config settings and it's driving me nuts.
Added the config through solution explorer. Named it test.config
My Config File:
<?xml version="1.0" encoding="utf-8" ?>
<add key="dbConnString" value="server=127.0.0.1;uid=sa;pwd=;database=Northwind" />
Accessing in the code like this:
private String dbConnString = ConfigurationSettings.AppSettings ["dbConnString"];
Am I missing something? I haven't touched the assembly at all, do I need to add it to GAC or anything before the config will take effect?