[Mono-list] System.Configuration.DictionarySectionHandler again

Robert Jordan robertj at gmx.net
Thu Jun 19 10:54:32 EDT 2008


neil.young wrote:
> Hi,
> 
> Mono 1.9, Custom Configuration Section in app.config has to be specified as:
> <configSections>
>     <section name="test"
> type="System.Configuration.DictionarySectionHandler, System" />
> </configSections>
> 
> Without the "System" the configuration section may not be used in the
> application.
> 
> In contrast specifiying the "System" in a VS 2005 console app causes an
> exception: Assembly not found (meant is System). Here the config section
> entry has to be specified as
> <configSections>
>     <section name="test"
> type="System.Configuration.DictionarySectionHandler" />
> </configSections>
> 
> Is Mono wrong?

Maybe, but you can fix this by using the fully qualified type name:

type="System.Configuration.DictionarySectionHandler, System, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

This works on both systems.

Robert



More information about the Mono-list mailing list