[Mono-list] Reading application settings from web.config file
kobruleht2 at hot.ee
Sat Jun 6 09:22:50 EDT 2009
> This was fixed for trunk sometime ago, look at this bug
> I've just backported it to the 2.4 branch (r135562)
I need to read appsettings from an other assembly which is called from main
web application (asmx web service).
I tried code below but got exception
web.config does not contain appsettings
since rootWebConfig1.AppSettings.Settings.Count is 0.
How to read application setting in web.config from assembly which is not
main application assembly?
public string Server
System.Configuration.Configuration rootWebConfig1 =
// rootWebConfig1.FilePath points to correct file.
if (0 < rootWebConfig1.AppSettings.Settings.Count)
if (null != customSetting)
throw new ArgumentException("No Server application
throw new ArgumentException("web.config does not contain
More information about the Mono-list