[Mono-bugs] [Bug 624914] InvalidCastException in get_AppSettings under xsp4 where it works under xsp2

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 10 17:17:24 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=624914

http://bugzilla.novell.com/show_bug.cgi?id=624914#c1


Marek Habersack <mhabersack at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Sys.Web                     |misc
         AssignedTo|mhabersack at novell.com       |mono-bugs at lists.ximian.com
            Product|Mono: Class Libraries       |Mono: Runtime

--- Comment #1 from Marek Habersack <mhabersack at novell.com> 2010-08-10 23:17:23 CEST ---
This is a bug in the runtime. The problem here is that in 4.0, for some reason,
the ConfigurationManager static class is constructed twice in the ASP.NET
application's AppDomain, so it gets to use the default
ClientConfigurationSystem instead of the
System.Web.Configuration.HttpConfigurationSystem. Here's a log of a run under
2.0 profile:

------------------------
/home/devel/trunk/bin/mono  -O=-aot  --debug  
/home/devel/trunk/lib/mono/2.0/xsp2.exe --verbose --root "." --port 8080  | tee
 2>&1
ConfigurationManager..cctor ()
    appDomain == 0
Adding applications '/:.'...
Registering application:
    Host:          any
    Port:          any
    Virtual path:  /
    Physical path: /home/src/tmp/tests/Bugs/Bug624914/BlogEngine.Web/
ConfigurationManager..cctor ()
    appDomain == 1
ConfigurationManager.ChangeConfigurationSystem
(System.Web.Configuration.HttpConfigurationSystem)
    systemWebInUse == True
------------------------

And here's one from 4.0:

------------------------
/home/devel/trunk/bin/mono  -O=-aot  --debug  
/home/devel/trunk/lib/mono/4.0/xsp4.exe --verbose --root "." --port 8080  | tee
 2>&1
ConfigurationManager..cctor ()
    appDomain == 0
Adding applications '/:.'...
Registering application:
    Host:          any
    Port:          any
    Virtual path:  /
    Physical path: /home/src/tmp/tests/Bugs/Bug624914/BlogEngine.Web/
ConfigurationManager..cctor ()
    appDomain == 1
ConfigurationManager.ChangeConfigurationSystem
(System.Web.Configuration.HttpConfigurationSystem)
    systemWebInUse == True
ConfigurationManager..cctor ()
    appDomain == 1
------------------------

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list