I am trying to use the logging application block in my Azure Web Role. I configured my web.config to use file based configuration named (entlib.config) which is copied to the output directory.
I am facing a strange issue when calling the below code
var configurationSource = ConfigurationSourceFactory.Create("File-based Configuration Source");
var logWriterFactor = new LogWriterFactory(configurationSource);
This code throw exception in the first line with the following message "The configuration source section is not found in the application configuration file."
Which means the ConfigurationSourceFactory didn't load the web.config.
What am I doing wrong?