[Mono-aspnet-list] Does mod_mono support Web.config inheritance?

Chris Capon ttabyss at gmail.com
Wed Jun 27 22:09:04 UTC 2012


I have an application which reads settings from the <appSettings>
section of the Web.config.  Normally, under IIS, an application in a
child folder can read settings from its own Web.config but also those
of a parent folder.  There is a hierarchy of inheritance that merges
them together.  When I run the same application under Apache2 with
mod_mono, only the settings from the child Web.config are available.

For example, given a page like this:

   /TestParent/TestChild/Test.aspx

The Test.aspx page can access settings in:

   /TestParent/TestChild/Web.config

but not settings in:

   /TestParent/Web.config


The system is Debian Linux running Apache2 2.2.22-7,
mono-apache-server4 2.10-2.1 and libapache2-mod-mono 2.10-3.1.  Both
the parent and child folders are registered as applications with
mono-apache-server4.

Parent:
   path = /path/to/TestParent
   alias = /TestParent

Child:
   path = /path/to/TestParent/TestChild
   alias = /TestParent/TestChild

Can anyone tell me if this is a bug or if I have missed something in
configuring the system.

Thanks,
Chris.


More information about the Mono-aspnet-list mailing list