[Mono-list] mod_mono help...

Reno Romanin reno@hardcoretek.com
Mon, 30 Aug 2004 23:45:30 -0500


Hey there, first post to this list, thanks for any help in advance ;P

Anyway, I'm not a programmer of any type, all I am trying to do is host
a site that is written in c#.

It's pretty simple, click on something and it searches a flat database
for related info. When I try to do this, it returns an http 500 error,
something like this:

Description: Error processing request. 
Error Message: HTTP 500. 

Stack Trace: System.InvalidCastException: Cannot cast from source type
to destination type.
in <0x00037> System.Web.UI.WebControls.WebControl:LoadViewState (object)
in <0x00022> System.Web.UI.WebControls.Label:LoadViewState (object)
in <0x00093> System.Web.UI.Control:LoadViewStateRecursive (object)
in <0x001b4> System.Web.UI.Control:LoadViewStateRecursive (object)
in <0x001b4> System.Web.UI.Control:LoadViewStateRecursive (object)
in <0x0005b> System.Web.UI.Page:LoadPageViewState ()
in <0x000f1> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x00359> System.Web.HttpServerUtility:Execute
(string,System.IO.TextWriter,bool)
in <0x000bb> System.Web.HttpServerUtility:Transfer (string,bool)
in <0x00016> System.Web.HttpServerUtility:Transfer (string)
in <0x00020> tickethog.pageDefault:btnSearch_Click
(object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x0009e> System.Web.UI.WebControls.Button:OnClick (System.EventArgs)
in <0x00058>
System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.Rai
sePostBackEvent (string)
in <0x00016> System.Web.UI.Page:RaisePostBackEvent
(System.Web.UI.IPostBackEventHandler,string)
in <0x0003e> System.Web.UI.Page:RaisePostBackEvents ()
in <0x002c3> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002eb> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)



This site works perfectly on an IIS server, so I know the code is there,

But I can't get it to work right on apache, so I'm sure it's something
I've missed in the mod-mono-server.config. 
Any input/info would help a lot!

TIA, 

--reno