[Mono-list] multiple web apps with mod_mono

Chris Turchin chris@turchin.net
Mon, 24 May 2004 07:01:10 -0700 (PDT)


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