[Mono-dev] xsp2 crashes with the ms default web.config file

Pablo Iñigo Blasco pibgeus at gmail.com
Thu Dec 1 15:23:21 EST 2005


I tried migrate my ASP2.0 on IIS5 to XSP2, in my first request i get this
exception "System.Configuration.ConfigurationException: Unrecognized
attribute in root element (D:/HomeWeb2.0\Web.config line 2)" . This
web.config is the default web.config with "Visual WebDeveloper Express
Edition".

web.config fragment:

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <connectionStrings>
  <remove name="LocalSqlServer" />
...
------------------------------------------------------------------------------------------------------------
C:\Archivos de programa\Mono-1.1.10\bin>mono ../lib/xsp/2.0/xsp2.exe --root
D:\HomeWeb2.0 --port 8088 --verbose
xsp2
Adding applications '/:.'...
Registering application:
    Host:          any
    Port:          any
    Virtual path:  /
    Physical path: D:\HomeWeb2.0
Listening on port: 8088 (non-secure)
Listening on address: 0.0.0.0
Root directory: D:\HomeWeb2.0
Hit Return to stop the server.
---------------------------------EXCEPTION ON
REQUEST-------------------------------------------------------------------
System.TypeInitializationException: An exception was thrown by the type
initializer for Mono.WebServer.XSPWorkerRequest

Server stack trace:
in <0x00000> <unknown method>
in <0x00150> Mono.WebServer.XSPApplicationHost:ProcessRequest (Int32 reqId,
Int64 localEPAddr, Int32 localEPPort, Int64 remoteEPAdds, Int32 remoteEPPo
rt, System.String verb, System.String path, System.String queryString,
System.String protocol, System.Byte[] inputBuffer, System.String redirect,
IntP
tr socket, Mono.WebServer.SslInformations ssl)
in (wrapper remoting-invoke-with-check)
Mono.WebServer.XSPApplicationHost:ProcessRequest(int,long,int,long,int,string,string,string,string,byte[],str
ing,intptr,Mono.WebServer.SslInformations)
in (wrapper xdomain-dispatch)
Mono.WebServer.XSPApplicationHost:ProcessRequest(object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,stri
ng,byte[],string)

Exception rethrown at [0]:
 ---> System.Configuration.ConfigurationException: Unrecognized attribute in
root element (D:/HomeWeb2.0\Web.config line 2)
in <0x00043> System.Configuration.ConfigurationData:ThrowException (
System.String text, System.Xml.XmlTextReader reader)
in <0x00082> System.Configuration.ConfigurationData:InitRead (
System.Xml.XmlTextReader reader)
in <0x00098> System.Configuration.ConfigurationData:Load
(System.StringfileName)--- End of inner exception stack trace ---

in (wrapper xdomain-invoke)
Mono.WebServer.XSPApplicationHost:ProcessRequest(int,long,int,long,int,string,string,string,string,byte[],string,intptr,M
ono.WebServer.SslInformations)
in (wrapper remoting-invoke-with-check)
Mono.WebServer.XSPApplicationHost:ProcessRequest(int,long,int,long,int,string,string,string,string,byte[],str
ing,intptr,Mono.WebServer.SslInformations)
in <0x00563> Mono.WebServer.XSPWorker:InnerRun (System.Object state)
in <0x00022> Mono.WebServer.XSPWorker:Run (System.Object state)
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Web.HttpRuntime

Server stack trace:
in <0x00000> <unknown method>
in <0x0002b> System.Web.Hosting.SimpleWorkerRequest:.ctor (System.Stringpage,
System.String query, System.IO.TextWriter output)
in <0x0001c> Mono.WebServer.MonoWorkerRequest:.ctor (IApplicationHost
appHost)
in <0x00015> Mono.WebServer.XSPWorkerRequest:.ctor (Int32 requestId,
Mono.WebServer.XSPRequestBroker requestBroker, IApplicationHost appHost,
System.N
et.EndPoint localEP, System.Net.EndPoint remoteEP, System.String verb,
System.String path, System.String queryString, System.String protocol,
System.B
yte[] inputBuffer, IntPtr socket, Boolean secure)
in <0x0014f> Mono.WebServer.XSPApplicationHost:ProcessRequest (Int32 reqId,
Int64 localEPAddr, Int32 localEPPort, Int64 remoteEPAdds, Int32 remoteEPPo
rt, System.String verb, System.String path, System.String queryString,
System.String protocol, System.Byte[] inputBuffer, System.String redirect,
IntP
tr socket, Mono.WebServer.SslInformations ssl)
in (wrapper remoting-invoke-with-check)
Mono.WebServer.XSPApplicationHost:ProcessRequest(int,long,int,long,int,string,string,string,string,byte[],str
ing,intptr,Mono.WebServer.SslInformations)
in (wrapper xdomain-dispatch)
Mono.WebServer.XSPApplicationHost:ProcessRequest(object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,stri
ng,byte[],string)

--
No hay viento favorable para el que no sabe donde va.
Pablo Iñigo Blasco - GeuS- www.geus.es.vg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051201/b1beb9c0/attachment.html 


More information about the Mono-devel-list mailing list