by mark shiffer
8. October 2009 21:52
Recently had to do this for some framework development and just noting here for future reference:
1: IWebApplication webApp = (IWebApplication)Component.Site.GetService(
2: typeof(IWebApplication) );
3: Configuration config = webApp.OpenWebConfiguration(true);