[Mono-list] xsp and xsp2 errors

Azher Amin azher at niit.edu.pk
Sat Aug 25 23:42:06 EDT 2007


Hi gurus,

I am trying to port a .NET application and while running xsp directly
here is the error. If i run xsp2 then errors are generated, placed at
the end. Plz suggest what could be wrong.

Regards
-Azher

-------------------------------------------
# xsp --port 80
xsp
Listening on port: 80 (non-secure)
Listening on address: 0.0.0.0
Root directory: /var/www/html/aspx
Hit Return to stop the server.
System.TypeInitializationException: An exception was thrown by the type
initializer for Mono.WebServer.XSPWorkerRequest

Server stack trace:
  at <0x00000> <unknown method>
  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.ConfigurationException: Unrecognized
attribute in root element (/var/www/html/aspx/web.config line 2)
  at System.Configuration.ConfigurationData.ThrowException
(System.String text, System.Xml.XmlTextReader reader) [0x00000]
  at System.Configuration.ConfigurationData.InitRead
(System.Xml.XmlTextReader reader) [0x00000]
  at System.Configuration.ConfigurationData.Load (System.String
fileName) [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]
-------------------------------------------


# xsp2 --port 80
xsp2
Listening on port: 80 (non-secure)
Listening on address: 0.0.0.0
Root directory: /var/www/html/aspx
Hit Return to stop the server.
System.TypeInitializationException: An exception was thrown by the type
initializer for Mono.WebServer.XSPWorkerRequest

Server stack trace:
  at <0x00000> <unknown method>
  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> ()
(/var/www/html/aspx/web.config line 83)
  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.Configuration.ConfigurationManager.get_AppSettings () [0x00000]
  at Mono.WebServer.XSPWorkerRequest..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]




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Mono-list mailing list