[Mono-dev] WebRequest/Configuration bug in 2.0
Atsushi Eno
atsushi at ximian.com
Sat Jun 10 02:45:43 EDT 2006
Hi,
Just fixed in svn. Thanks.
Atsushi Eno
John Luke wrote:
> Hello,
>
> It seems that if you have a .config file for your app containing dllmaps
> creating a WebRequest will fail. I think it is specific to 2.0
> configuration stuff. (Originally found by trying to use the banshee
> podcast plugin). Let me know if you want it in bugzilla instead.
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Net.WebRequest --->
> System.Configuration.ConfigurationErrorsException: Unrecognized
> configuration section <dllmap> ()
> (/usr/local/etc/mono/2.0/machine.config line 2)
> at System.Configuration.ConfigInfo.ThrowException (System.String text,
> System.Xml.XmlTextReader reader) [0x00000]
> at System.Configuration.SectionGroupInfo.ReadContent
> (System.Xml.XmlTextReader reader, System.Configuration.Configuration
> config, Boolean overrideAllowed, Boolean root) [0x00000]
> at System.Configuration.SectionGroupInfo.ReadRootData
> (System.Xml.XmlTextReader reader, System.Configuration.Configuration
> config, Boolean overrideAllowed) [0x00000]
> at System.Configuration.Configuration.ReadConfigFile
> (System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
> at System.Configuration.Configuration.Load () [0x00000]
> at System.Configuration.Configuration.Init (IConfigSystem system,
> System.String configPath, System.Configuration.Configuration parent)
> [0x00000]
> at System.Configuration.Configuration..ctor
> (System.Configuration.InternalConfigurationSystem system, System.String
> locationSubPath) [0x00000]
> at System.Configuration.InternalConfigurationFactory.Create
> (System.Type typeConfigHost, System.Object[]
> hostInitConfigurationParams) [0x00000]
> at
> System.Configuration.ConfigurationManager.OpenExeConfigurationInternal
> (ConfigurationUserLevel userLevel, System.Reflection.Assembly
> calling_assembly, System.String exePath) [0x00000]
> at
> System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000]
> at System.Configuration.ConfigurationManager.GetSection (System.String
> sectionName) [0x00000]
> at System.Net.WebRequest..cctor () [0x00000] --- End of inner
> exception stack trace ---
More information about the Mono-devel-list
mailing list