[runtime] Fix for bug #624914. Runtime has to remap System.Config 2.0 to 4.0
authorMarek Habersack <grendel@twistedcode.net>
Tue, 10 Aug 2010 21:41:35 +0000 (23:41 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Tue, 10 Aug 2010 21:52:42 +0000 (23:52 +0200)
commit762b27f65f00ba2c4a515c756a585ddd3397ccd2
tree75e63a407df130a3b31eb01e976ba6a5f0c858aa
parent6a1311fb68de40f17d4de77105b5b3307136eafb
[runtime] Fix for bug #624914. Runtime has to remap System.Config 2.0 to 4.0

The bug was caused by the runtime loading two copies of System.Configuration -
one for the 4.0 profile (loaded by xsp4 itself) and another for the 2.0 profile
(loaded as a reference for BlogEngine.Core.dll) and for that reason, the static
class System.Configuration.ConfigurationManager was instantiated twice in the
BlogEngine application's AppDomain which, in effect, led to the exception since
the configuration system wasn't reset from the default one to the system.web-specific
one. The commit makes runtime remap System.Configuration 2.0 to 4.0.

Thanks to Zoltan Varga for catching the issue.
mono/metadata/assembly.c