[Mono-list] ASP.NET problem with Npgsql

Chris Toshok toshok at ximian.com
Mon Mar 13 19:30:48 EST 2006


This was due to a change to the 2.0 machine.config file in 1.1.13.  The
attached patch (which has been committed to the 1.1.13 branch) should
fix it for you.

Chris

On Mon, 2006-03-13 at 17:30 -0500, Abe Gillespie wrote:
> I'm getting the following when trying to load a page.  I'm running
> Mono 1.1.13.4 and xsp2:
> 
> Npgsql.NpgsqlException: System.TypeInitializationException: An
> exception was thrown by the type initializer for System.Net.Dns --->
> System.Configuration.ConfigurationException: system.net/settings does
> not implement System.Configuration.IConfigurationSectionHandler ()
> in <0x000e1> System.Web.Configuration.ConfigurationData:CreateNewHandler
> (System.String sectionName, System.Web.Configuration.SectionData
> section)
> in <0x001d1> System.Web.Configuration.ConfigurationData:GetHandler
> (System.String sectionName)
> in <0x00055> System.Web.Configuration.ConfigurationData:GetHandler
> (System.String sectionName)
> in <0x00026> System.Web.Configuration.ConfigurationData:GetConfigInternal
> (System.String sectionName, System.Web.HttpContext context, Boolean
> useLoc)
> in <0x00072> System.Web.Configuration.ConfigurationData:GetConfigOptLocation
> (System.String sectionName, System.Web.HttpContext context, Boolean
> useLoc)
> in <0x00276> System.Web.Configuration.ConfigurationData:GetConfig
> (System.String sectionName, System.Web.HttpContext context)
> in <0x0005a> System.Web.Configuration.WebDefaultConfig:GetConfig
> (System.String sectionName, System.Web.HttpContext context)
> in <0x00022> System.Web.Configuration.WebDefaultConfig:GetConfig
> (System.String sectionName)
> in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig
> (System.String sectionName)
> in <0x00091> System.Net.Sockets.Socket:CheckProtocolSupport ()
> in <0x00007> System.Net.Dns:.cctor ()--- End of inner exception stack trace ---
> 
> in <0x00000> <unknown method>
> in <0x0002b> Npgsql.NpgsqlClosedState:ResolveIPHost (System.String HostName)
> in <0x00065> Npgsql.NpgsqlClosedState:Open (Npgsql.NpgsqlConnector
> context) ---> System.TypeInitializationException: An exception was
> thrown by the type initializer for System.Net.Dns --->
> System.Configuration.ConfigurationException: system.net/settings does
> not implement System.Configuration.IConfigurationSectionHandler ()
> in <0x000e1> System.Web.Configuration.ConfigurationData:CreateNewHandler
> (System.String sectionName, System.Web.Configuration.SectionData
> section)
> in <0x001d1> System.Web.Configuration.ConfigurationData:GetHandler
> (System.String sectionName)
> in <0x00055> System.Web.Configuration.ConfigurationData:GetHandler
> (System.String sectionName)
> in <0x00026> System.Web.Configuration.ConfigurationData:GetConfigInternal
> (System.String sectionName, System.Web.HttpContext context, Boolean
> useLoc)
> in <0x00072> System.Web.Configuration.ConfigurationData:GetConfigOptLocation
> (System.String sectionName, System.Web.HttpContext context, Boolean
> useLoc)
> in <0x00276> System.Web.Configuration.ConfigurationData:GetConfig
> (System.String sectionName, System.Web.HttpContext context)
> in <0x0005a> System.Web.Configuration.WebDefaultConfig:GetConfig
> (System.String sectionName, System.Web.HttpContext context)
> in <0x00022> System.Web.Configuration.WebDefaultConfig:GetConfig
> (System.String sectionName)
> in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig
> (System.String sectionName)
> in <0x00091> System.Net.Sockets.Socket:CheckProtocolSupport ()
> in <0x00007> System.Net.Dns:.cctor ()--- End of inner exception stack trace ---
> 
> in <0x00000> <unknown method>
> in <0x0002b> Npgsql.NpgsqlClosedState:ResolveIPHost (System.String HostName)
> in <0x00065> Npgsql.NpgsqlClosedState:Open (Npgsql.NpgsqlConnector
> context)--- End of inner exception stack trace ---
> 
> in <0x0057c> Npgsql.NpgsqlClosedState:Open (Npgsql.NpgsqlConnector context)
> in <0x000c4> Npgsql.NpgsqlConnector:Open ()
> in <0x0022e> Npgsql.NpgsqlConnectorPool:GetPooledConnector
> (Npgsql.NpgsqlConnection Connection)
> 
> Thanks for any help.
> -Abe
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.0-machine.config.diff
Type: text/x-patch
Size: 776 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20060313/765c03ab/2.0-machine.config-0001.bin


More information about the Mono-list mailing list