[Mono-bugs] [Bug 76442][Nor] New - <httpWebRequest> tag in Web.config requires maximumResponseHeadersLength attribute

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 14 14:48:03 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by eto at shaw.ca.

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

--- shadow/76442	2005-10-14 14:48:03.000000000 -0400
+++ shadow/76442.tmp.23474	2005-10-14 14:48:03.000000000 -0400
@@ -0,0 +1,99 @@
+Bug#: 76442
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: gentoo
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: eto at shaw.ca               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: <httpWebRequest> tag in Web.config requires maximumResponseHeadersLength attribute
+
+Description of Problem:
+I have a Web.config file that specifies that I want to use unsafe header
+parsing, but nothing else.  mono does not like this and requires the
+maximumResponseHeadersLength attribute to be set, which should not be required.
+
+Steps to reproduce the problem:
+1. Put the following into your web.config file:
+	<system.net>
+	    <settings>
+	        <httpWebRequest useUnsafeHeaderParsing="true" />
+	    </settings>
+	</system.net>
+2. Run xsp
+3. Browse to page
+
+Actual Results:
+Get an exception:
+System.Exception: Could not initialize database 'AIM' --->
+System.TypeInitializationException: An exception was thrown by the type
+initializer for System.Net.Dns --->
+System.Configuration.ConfigurationException: Required attribute not found:
+maximumResponseHeadersLength (node name: httpWebRequest)  ()
+in <0x00084> System.Net.Configuration.HandlersUtil:ThrowException
+(System.String msg, System.Xml.XmlNode node)
+in <0x0009d> System.Net.Configuration.HandlersUtil:ExtractAttributeValue
+(System.String attKey, System.Xml.XmlNode node, Boolean optional)
+in <0x00219> System.Net.Configuration.NetConfigurationHandler:Create
+(System.Object parent, System.Object configContext, System.Xml.XmlNode section)
+in <0x00157> System.Web.Configuration.ConfigurationData:GetConfigInternal
+(System.String sectionName, System.Web.HttpContext context, Boolean useLoc)
+in <0x0007d>
+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 <0x000a5> System.Net.Sockets.Socket:CheckProtocolSupport ()
+in <0x00007> System.Net.Dns:.cctor ()--- End of inner exception stack trace ---
+
+in <0x00000> <unknown method>
+in <0x00027> Mono.Data.Tds.Protocol.TdsConnectionParameters:.ctor ()
+in <0x00020> System.Data.SqlClient.SqlConnection:.ctor (System.String
+connectionString)
+in (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlConnection:.ctor (string)
+in <0x0001b>
+Syd.Data.DatabaseProviders.SqlServerDatabaseProvider:CreateConnection
+(System.String connectionString)
+in <0x0002a> Syd.Data.Database:CreateConnection ()
+in <0x000e2> Syd.Data.SystemSettings:GetSetting (Guid settingKey, Boolean
+isLongSetting, Boolean fromCache)
+in <0x0002c> Syd.Data.SystemSettings:GetSetting (Guid settingKey)
+in <0x0002b> Syd.Data.SystemSettings:GetBooleanSetting (Guid settingKey)
+in <0x00046> Syd.Security.Users:get_AllowTemplateUserLogin ()
+in <0x00156> Syd.Module.Main.Module:Initialize
+(Syd.Module.ModuleInitializeArgs args)
+in <0x0012e> Syd.Data.Database:LoadModule (System.Type moduleType)
+in <0x00156> Syd.Data.Database:LoadModuleAssembly (System.String
+assemblyName)--- End of inner exception stack trace ---
+
+in <0x00287> Syd.Data.Database:Initialize ()
+in <0x0004c> Syd.Configuration:GetDatabase (System.String databaseId)
+in <0x001c8> Syd.Web.Authentication:AuthenticateUser ()
+in <0x00007> Syd.Web.Global:Application_PreRequestHandlerExecute
+(System.Object sender, System.EventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+in <0x0045c> System.Web.HttpApplication+<RunHooks>__0:MoveNext ()
+
+Expected Results:
+Application should run correctly
+
+How often does this happen? 
+Every time
+
+Additional Information:


More information about the mono-bugs mailing list