Home

Config file not working in Windows 7

JoeJoe
edited May 2012
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);
}

Sign In or Register to comment.