[Mono-dev] Bug in ConfigurationSection.cs

James Fitzsimons james.fitzsimons at gmail.com
Thu Aug 16 17:47:36 EDT 2007


FYI I've created a new bug in bugzilla on this issue.

http://bugzilla.ximian.com/show_bug.cgi?id=82461

On 8/16/07, James Fitzsimons <james.fitzsimons at gmail.com> wrote:
>
> Hi all,
>
> While trying to get Spring.NET working on mono I've discovered a bug in
> the mono implementation of ConfigurationSection. The documentation
> (
> http://msdn2.microsoft.com/en-us/library/system.configuration.iconfigurationsectionhandler.create(VS.71).aspx
> )
> states that the parameters for a call to the Create method on
> IConfigurationSectionHandler look like this:
>
> parent
>         The configuration settings in a corresponding parent
>         configuration section.
> configContext
>         An HttpConfigurationContext when Create is called from the
>         ASP.NET configuration system. Otherwise, this parameter is
>         reserved and is a null reference (Nothing in Visual Basic).
> section
>         The XmlNode that contains the configuration information from the
>         configuration file. Provides direct access to the XML contents
>         of the configuration section.
>
> The problem with the mono implementation of ConfigurationSection is that
> it doesn't honour the requirements for the configContext parameter.
>
> The problem is line 73 of ConfigurationSection.cs where the
> SectionHandler.Create method is called with a null argument for
> configContext regardless of whether it is being executed from with
> ASP.NET or not.
>
> I've attached a simple test case that will load a blank page when run on
> the MS .NET runtime, but will throw an exception when run on Mono.
>
> Looking forward to a patch (hopefully not too late for 1.2.5)!
> Thanks and regards,
> James Fitzsimons
> --
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070816/89a51eea/attachment.html 


More information about the Mono-devel-list mailing list