[Mono-dev] xsp2 Exception because of System.webServer in web.config
Nagappan
anagappan at novell.com
Fri Jan 5 02:49:19 EST 2007
Hi,
I suggest you to raise a bug in
http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%3A%20Tools under
'XSP' component. Also with a test-case to reproduce the issue. Mention
the exact version of Mono that you are currently using.
Thanks
Nagappan
Sandipan Charkavarty wrote:
> I am trying to write an web application using ASP.NET 2.0 using Visual
> Web Developer Express Edition, it runs fine in IIS in Windows but when I
> try to run it with xsp2 it gives an exception mentioned below.
> Please Advice.
>
> 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]
>
> My Web.Config contains this offending section:
> <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>
>
> Regards,
> Sandi
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
Nagappan A <anagappan at novell.com>
Novell Software Development (I) Pvt. Ltd.
Linux Desktop Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com/
Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready™
http://www.novell.com/linux
More information about the Mono-devel-list
mailing list