You are not logged in.
Hi, I upgraded to mono 3.0 in the official repositories and now xsp4 appears to be broken. I get a very strange stack trace from xsp when using mono 3.0 OR mono-git(from a few weeks ago, currently building latest to see if it happens there as well).
This is the full stacktrace. It's a pretty strange bug. It appears to be trying to call a method directly on an interface, which of course doesn't work. However, running this on mono 2.10 works fine:
[earlz@EarlzAlpha lastyearswishes]$ xsp4
Missing method System.Configuration.IConfigurationSectionHandler::Create(object,object,XmlNode) in assembly /usr/lib/mono/4.0/System.dll, referenced in assembly /usr/lib/mono/4.0/System.Configuration.dll
Exception caught during reading the configuration file:
System.MissingMethodException: Method not found: 'System.Configuration.IConfigurationSectionHandler.Create'.
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server.get_AppSettings () [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server+ApplicationSettings..ctor () [0x00000] in <filename unknown>:0
xsp4
Listening on address: 0.0.0.0
Root directory: /home/earlz/Projects/lastyearswishes
Error: System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Sockets.Socket ---> System.InvalidCastException: Cannot cast from source type to destination type.
at System.Net.Sockets.Socket.CheckProtocolSupport () [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Mono.WebServer.XSPWebSource.CreateSocket () [0x00000] in <filename unknown>:0
at Mono.WebServer.ApplicationServer.Start (Boolean bgThread) [0x00000] in <filename unknown>:0
at Mono.WebServer.ApplicationServer.Start (Boolean bgThread, System.Exception initialException) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) Mono.WebServer.ApplicationServer:Start (bool,System.Exception)
at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0
[earlz@EarlzAlpha lastyearswishes]$ edit:
From the posts I've seen, this is apparently a very common problem. The apparent solution is to build xsp from git.. Sadly, no xsp-git AUR package ![]()
Last edited by earlz (2013-06-06 06:00:33)
Offline