[Mono-list] Xsp error

Reeve, Matthew matthew.reeve@amsjv.com
Tue, 24 Aug 2004 16:38:36 +0100

If this is shown to be a bug, I will happily raise a report in bugzilla, but
I think it is more likely that I have a problem with configuration. I am
installing mono on a SPARC running solaris 8. The version being installed is
the full set downloaded as mono reached version 1. I have got round a number
of problems so far, including the lack of aintl, the lack of /dev/random and
various other niggles. I have a working "Hello World" running from the
command line. XSP is compiled and installed, and starts up without any
visible problems. On startup, the following is seen in the console :-

bash-2.03# mono /usr/bin/xsp.exe --root
Adding applications '/:.'...
Registering application:
    Host:          any
    Port:          any
    Virtual path:  /
    Physical path: /export/home/cdimages/mono_1/xsp-1.0/test
Listening on port: 8080
Listening on address:
Root directory: /export/home/cdimages/mono_1/xsp-1.0/test
Hit Return to stop the server.

On the first request of a web page, the following error is received at the
browser, with no change made to the console window :-

Server error in '/' application

Description: Error processing request. 

Error Message: HTTP 500. 

Stack Trace: 
 System.TypeInitializationException: An exception was thrown by the type
initializer for System.Web.Caching.Cache ---> System.OverflowException:
Resulting timespan is too big.
 in <0x00470> System.TimeSpan:From (double,long)
 in <0x00038> System.TimeSpan:FromDays (double)
 in <0x0009c> System.Web.Caching.Cache:.cctor ()
 --- End of inner exception stack trace ---

 in (unmanaged) System.Web.Caching.Cache:.ctor ()
 in <0x00034> System.Web.HttpRuntime:Init ()

If the webpage is requested a second time, the browser sees :-

Server error

Your client sent a request that was not understood by this server. 

And the console sees :-

System.NullReferenceException: Object reference not set to an instance of an

Server stack trace: 
in <0x00094> System.Web.HttpRuntime:ProcessRequest
in <0x00008> Mono.ASPNET.MonoWorkerRequest:ProcessRequest ()
in <0x00074> Mono.ASPNET.BaseApplicationHost:ProcessRequest
in <0x00094> (wrapper remoting-invoke-with-check)
in <0x002a4> Mono.ASPNET.XSPApplicationHost:ProcessRequest
in (unmanaged) (wrapper managed-to-native)
in <0x00004> (wrapper managed-to-native)
in <0x001f8> System.Runtime.Remoting.RemotingServices:InternalExecuteMessage

Exception rethrown at [0]: 

in <0x00a2c> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke

The code of the page being requested in this example is pure html, no asp,
although the same error is received for more complex pages :-
Some words here to show that xsp is able to interpret a static html page

If anyone is able to help out, I would be extremely grateful. I have
searched google and the archives, but to no avail as yet. If there is any
other information I can provide, please ask.

Matthew Reeve

Unit D1
Marabout Industrial estate
Dorset DT1 1YA

Tel:  +44 1305 217645
Fax: +44 1305 251515

e-mail: matthew.reeve@amsjv.com 

This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.