[Mono-list] multiple web apps with mod_mono

Chris Turchin chris@turchin.net
Mon, 24 May 2004 23:05:34 +0200


Hi,

Some more information to my situation: the /test/ webapp accompanying
xsp seems to work regardless of whether another app was started first. 

the only difference i have noticed is that i am using sessions in the
other apps and not in the /test/ app. and as if to confirm, when I click
on: 

http://turchin.homelinux.net/test/session1.aspx


i get:

Server error in '/test' application

________________________________________________________________________
Description: Error processing request. 

Error Message: HTTP 500. 

Stack Trace: 
System.NullReferenceException: Object reference not set to an instance of an object
in <0x0001d> System.Int32:FindSign (int&,string,System.Globalization.NumberFormatInfo,bool&,bool&)
in <0x0043d> System.Int32:Parse (string,System.Globalization.NumberStyles,System.IFormatProvider)
in <0x00013> System.Int32:Parse (string,System.IFormatProvider)
in <0x00019> System.Convert:ToInt32 (string,System.IFormatProvider)
in <0x0000e> System.String:System.IConvertible.ToInt32 (System.IFormatProvider)
in <0x0048d> System.Convert:ToType (object,System.Type,System.IFormatProvider)
in <0x00037> System.Convert:ChangeType (object,System.Type)
in <0x001fa> System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString (System.Type,string)
in <0x000e5> System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField (System.Web.UI.ControlBuilder,System.Type,string,string,bool)
in <0x001e9> System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields (System.Web.UI.ControlBuilder,System.Reflection.MemberInfo,string,string)
in <0x0040f> System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFromAttributes (System.Web.UI.ControlBuilder)
in <0x0014b> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
in <0x004fb> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
in <0x004fb> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
in <0x00050> System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
in <0x0000a> System.Web.Compilation.PageCompiler:CreateMethods ()
in <0x0019e> System.Web.Compilation.BaseCompiler:GetCompiledType ()
in <0x00273> System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
in <0x0001a> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
in <0x00048> System.Web.UI.PageParser:GetCompiledPageInstance (string,string,System.Web.HttpContext)
in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext,string,string,string)
in <0x003a1> System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
in <0x00122> CreateHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)


which is consistent with the problems occuring in the other webapps. is
it possible that mod_mono is having trouble supporting more than one
webapp's session state?

i also have experienced that when I enable cookieless="true" in the
web.config, the apps do not seem to work at all anymore:

Server error in '/blogx' application

________________________________________________________________________
Cannot find '/blogx/(573F4B3EE6459955E53776F95B7433)//Default.aspx'.
Description: Error processing request. 

Error Message: HTTP 404. Cannot find
'/blogx/(573F4B3EE6459955E53776F95B7433)//Default.aspx'.


Any ideas?

Regards,
--chris




On Mon, 2004-05-24 at 16:01, Chris Turchin wrote:
> Hi,
> 
> until just recently, this morning in fact, I was able to run 4 web apps with
> mod_mono concurrently and it seemed mostly to "just work". Since updating from
> cvs today I have the following situation:
> 
> After an apache restart, the first app loads in the browser and runs fine.
> However any attempt to start an additional app yields the following error:
> 
> Server error in '/blogx' application
> Description: Error processing request.
> 
> Error Message: HTTP 500.
> 
> Stack Trace:
> 
> System.NullReferenceException: Object reference not set to an instance of an
> object
> in <0x0001d> System.Int32:FindSign
> (int&,string,System.Globalization.NumberFormatInfo,bool&,bool&)
> in <0x0043d> System.Int32:Parse
> (string,System.Globalization.NumberStyles,System.IFormatProvider)
> in <0x00013> System.Int32:Parse (string,System.IFormatProvider)
> in <0x00019> System.Convert:ToInt32 (string,System.IFormatProvider)
> in <0x0000e> System.String:System.IConvertible.ToInt32 (System.IFormatProvider)
> in <0x0048d> System.Convert:ToType (object,System.Type,System.IFormatProvider)
> in <0x00037> System.Convert:ChangeType (object,System.Type)
> in <0x001fa>
> System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString
> (System.Type,string)
> in <0x000e5>
> System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField
> (System.Web.UI.ControlBuilder,System.Type,string,string,bool)
> in <0x001e9>
> System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields
> (System.Web.UI.ControlBuilder,System.Reflection.MemberInfo,string,string)
> in <0x0040f>
> System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFromAttributes
> (System.Web.UI.ControlBuilder)
> in <0x0014b> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x004fb> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x004fb> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x004fb> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00050> System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
> in <0x0000a> System.Web.Compilation.PageCompiler:CreateMethods ()
> in <0x0019e> System.Web.Compilation.BaseCompiler:GetCompiledType ()
> in <0x00273> System.Web.Compilation.AspGenerator:GetCompiledType ()
> in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
> in <0x0001a> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
> in <0x00048> System.Web.UI.PageParser:GetCompiledPageInstance
> (string,string,System.Web.HttpContext)
> in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler
> (System.Web.HttpContext,string,string,string)
> in <0x003a1> System.Web.HttpApplication:CreateHttpHandler
> (System.Web.HttpContext,string,string,string)
> in <0x00122> CreateHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState
> (System.Web.HttpApplication/IStateHandler,bool&)
> 
> 
> 
> 
> It seems to be irrelevant which app I open in the browser first, it will work,
> and any further application will result in this error. My setup is mdk 9.1,
> apache-2 2.0.47, mono, mcs,xsp, mod_mono etc from cvs (updated today)...
> 
> Here is my config according to server-info:
> 
>    Module Name: mod_mono.c
>    Content handlers: yes
>    Configuration Phase Participation: Create Server Config
>    Request Phase Participation: none
>    <snip>
>    Current Configuration:
>           MonoRunXSP True
>           MonoWapiDir /tmp
>           MonoUnixSocket /tmp/mod_mono_server
>           MonoServerPath /usr/bin/mod-mono-server.exe
>           MonoApplications
>           "/gd-gallery:/data/web/gd-gallery,/Doogle:/data/web/Doogle,/tes
>           t:/usr/share/doc/xsp/test,/blogx:/data/web/blogx"
> 
> 
> and here is from my httpd2.conf:
> 
> LoadModule mono_module        /usr/lib/apache2-2.0.47/libmod_mono.so
> MonoRunXSP True
> MonoWapiDir /tmp
> MonoUnixSocket /tmp/mod_mono_server
> MonoServerPath /usr/bin/mod-mono-server.exe
> MonoApplications
> "/gd-gallery:/data/web/gd-gallery,/Doogle:/data/web/Doogle,/test:/usr/share/doc/xsp/test,/blogx:/data/web/blogx"
> 
> Alias /test /usr/share/doc/xsp/test
> <Directory /usr/share/doc/xsp/test>
>     SetHandler mono
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> * The other directory entries are the same , just other directories :-)
> 
> I had seen this error sporradically in the past after a httpd restart but then
> it seemed to go away after a page refresh (<F5>). Now I can not get it to go
> away at all... :-(
> 
> Is this a configuration problem? I know there were more changes to mod_mono last
> week, maybe I missed something? Or should I file a bug report?
> 
> Thanks!
> 
> Regards,
> --chris
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list