I need to get the instance of current configuration in my web application. I found that I can get it in the following way:
Configuration configuration = WebConfigurationManager.OpenWebConfiguration( HttpContext.Current.Request.ApplicationPath);
But in some parts of my project I have no HttpContext so I need to get the instance of the config without using the HttpContext.
You should be able to get the
web.configlike this too: