[Mono-bugs] [Bug 80457][Blo] New - xsp2 Exception because of System.webServer in web.config
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jan 5 04:26:06 EST 2007
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 sandipan.chakravarty at wipro.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80457
--- shadow/80457 2007-01-05 04:26:06.000000000 -0500
+++ shadow/80457.tmp.13277 2007-01-05 04:26:06.000000000 -0500
@@ -0,0 +1,139 @@
+Bug#: 80457
+Product: Mono: Tools
+Version: 1.0
+OS:
+OS Details: Fedora Core 6
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: XSP
+AssignedTo: gonzalo at ximian.com
+ReportedBy: sandipan.chakravarty at wipro.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Summary: xsp2 Exception because of System.webServer in web.config
+
+Description of Problem:
+I am writing a Web Application using ASP.NET 2.0 using Visual Studio Web
+Developer Express Edition, It runs fine there but when i run it with xsp2
+it gives the following exception.
+
+Exception:
+System.TypeInitializationException: An exception was thrown by the type
+initializer for System.Web.HttpRuntime
+Server stack trace:
+ at <0x00000> <unknown method>
+ at System.Web.Hosting.SimpleWorkerRequest..ctor (System.String page,
+System.String query, System.IO.TextWriter output) [0x00000]
+ at Mono.WebServer.MonoWorkerRequest..ctor (IApplicationHost appHost)
+[0x00000]
+ at Mono.WebServer.XSPWorkerRequest..ctor (Int32 requestId,
+Mono.WebServer.XSPRequestBroker requestBroker, IApplicationHost appHost,
+System.Net.EndPoint localEP, System.Net.EndPoint remoteEP, System.String
+verb, System.String path, System.String queryString, System.String
+protocol, System.Byte[] inputBuffer, IntPtr socket, Boolean secure)
+[0x00000]
+ at Mono.WebServer.XSPApplicationHost.ProcessRequest (Int32 reqId,
+Int64 localEPAddr, Int32 localEPPort, Int64 remoteEPAdds, Int32
+remoteEPPort, System.String verb, System.String path, System.String
+queryString, System.String protocol, System.Byte[] inputBuffer,
+System.String redirect, IntPtr socket, Mono.WebServer.SslInformations
+ssl) [0x00000]
+ at (wrapper remoting-invoke-with-check)
+Mono.WebServer.XSPApplicationHost:ProcessRequest
+
+(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
+ at (wrapper xdomain-dispatch)
+Mono.WebServer.XSPApplicationHost:ProcessRequest
+ (object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,string,byte[],string)
+
+Exception rethrown at [0]:
+ ---> System.Configuration.ConfigurationErrorsException: Unrecognized
+configuration section <system.webServer> ()
+(/home/sandic/Work/bhaskar/CodeCritic/Web.Config line 80)
+ 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.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
+(System.String path, System.String site, System.String locationSubPath,
+System.String server, System.String userName, System.String password)
+[0x00000]
+ at
+System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
+(System.String path) [0x00000]
+ at System.Web.Configuration.WebConfigurationManager.GetSection
+(System.String sectionName) [0x00000]
+ at System.Web.QueueManager..ctor () [0x00000]
+ at System.Web.HttpRuntime..cctor () [0x00000] --- End of inner
+exception stack trace ---
+
+ at (wrapper xdomain-invoke)
+Mono.WebServer.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
+ at (wrapper remoting-invoke-with-check)
+Mono.WebServer.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
+ at Mono.WebServer.XSPWorker.RunInternal (System.Object state)
+[0x00000]
+
+Steps to reproduce the problem:
+1. Web.config contains
+<system.webServer>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <modules>
+ <add name="ScriptModule" preCondition="integratedMode"
+type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
+Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ </modules>
+ <handlers>
+ <remove name="WebServiceHandlerFactory-ISAPI-2.0"/>
+ <add name="ScriptHandlerFactory" verb="*" path="*.asmx"
+preCondition="integratedMode"
+type="System.Web.Script.Services.ScriptHandlerFactory,
+System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
+PublicKeyToken=31bf3856ad364e35"/>
+ <add name="ScriptResource" verb="GET" path="ScriptResource.axd"
+type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
+Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ </handlers>
+</system.webServer>
+
+Actual Results:
+Exception thrown
+
+Expected Results:
+Page Being Displayed
+
+How often does this happen?
+Everytime
+
+Additional Information:
+mono --version
+Mono JIT compiler version 1.2.2.1, (C) 2002-2006 Novell, Inc and
+Contributors. www.mono-project.com
+
+xsp2 --version
+xsp2.exe 1.2.1.0
+
+OS
+Fedora Core 6
More information about the mono-bugs
mailing list