[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
/export/home/cdimages/mono_1/xsp-1.0/test/
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: 0.0.0.0
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
object

Server stack trace: 
in <0x00094> System.Web.HttpRuntime:ProcessRequest
(System.Web.HttpWorkerRequest)
in <0x00008> Mono.ASPNET.MonoWorkerRequest:ProcessRequest ()
in <0x00074> Mono.ASPNET.BaseApplicationHost:ProcessRequest
(Mono.ASPNET.MonoWorkerRequest)
in <0x00094> (wrapper remoting-invoke-with-check)
Mono.ASPNET.BaseApplicationHost:ProcessRequest
(Mono.ASPNET.MonoWorkerRequest)
in <0x002a4> Mono.ASPNET.XSPApplicationHost:ProcessRequest
(int,string,int,string,int,string,string,string,string,string,byte[],string)
in (unmanaged) (wrapper managed-to-native)
System.Runtime.Remoting.RemotingServices:InternalExecute
(System.Reflection.MonoMethod,object,object[],object[]&)
in <0x00004> (wrapper managed-to-native)
System.Runtime.Remoting.RemotingServices:InternalExecute
(System.Reflection.MonoMethod,object,object[],object[]&)
in <0x001f8> System.Runtime.Remoting.RemotingServices:InternalExecuteMessage
(System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallMess
age)


Exception rethrown at [0]: 

in <0x00a2c> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging
.IMessage,System.Exception&,object[]&)


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 :-
<html>
<body>
Some words here to show that xsp is able to interpret a static html page
</body>
</html>


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

AMS
Unit D1
Marabout Industrial estate
Dorchester
Dorset DT1 1YA
UK

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.
********************************************************************