I want to get a logFilePath value which I gave by hardcode in to appSettings. I am trying to reach the key value by
System.Configuration.Configuration rootWebConfig1 = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null);
System.Configuration.KeyValueConfigurationElement customSetting = rootWebConfig1.AppSettings.Settings["azureLogUrl"];
string pathValue = customSetting.Value;
but I am getting null reference exception . How can I get the value from web.config file?