Options
Config file not working in Windows 7
I am using app config and connection string settings in LINQPad.config.
That works fine in XP but not on my windows 7 machine. I run linqpad as administrator, the config is not read only and I gave all user rights. Still the sections do not show up , and my EF4 code fails with invalid connection as the connection strings are obiously also not read (the config file has app settings and connectionstrings)
void Main()
{
Configuration lConfig=ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
Console.WriteLine(lConfig.FilePath);
Console.WriteLine(lConfig.AppSettings.Settings.AllKeys);
}
That works fine in XP but not on my windows 7 machine. I run linqpad as administrator, the config is not read only and I gave all user rights. Still the sections do not show up , and my EF4 code fails with invalid connection as the connection strings are obiously also not read (the config file has app settings and connectionstrings)
void Main()
{
Configuration lConfig=ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
Console.WriteLine(lConfig.FilePath);
Console.WriteLine(lConfig.AppSettings.Settings.AllKeys);
}