[Mono-aspnet-list] mod_mono with a custom built mono

Joe Dluzen jdluzen at gmail.com
Sun Nov 28 03:48:39 EST 2010


Hello all,

I'm attempting to run all my ASP.NET sites on a custom built mono
installation in /opt/mono2.8.1. I set the MonoExecutablePath
/opt/mono2.8.1/bin/mono
MonoServerPath /opt/mono2.8.1/bin/mod-mono-server2 accordingly, and I
can see the correct mod-mono-server2 starting, but when Apache starts
the mod-mono-server2 process, I get crashes such as:
Handling exception type TypeInitializationException

Message is An exception was thrown by the type initializer for
System.Threading.Timer
IsTerminating is set to True
System.TypeInitializationException: An exception was thrown by the
type initializer for System.Threading.Timer --->
System.TypeInitializationException: An exception was thrown by the
type initializer for Scheduler ---> System.SystemException: Thread
creation failed.


And gdb stack traces ending with: at (wrapper managed-to-native)
System.Runtime.Remoting.Proxies.RealProxy.InternalGetTransparentProxy
(System.Runtime.Remoting.Proxies.RealProxy*,string) <0x00003>

and at Mono.Web.Util.SettingsMapping.LoadContents
(System.Xml.XPath.XPathNavigator) <0xffffffff>. Full traces available
upon request, as they were largish.

But, it seems that if I run mod-mono-server2 manually (as root for
now, I'm getting permission issues if I run as www-data, but that
might be another topic...) all works great.

Ubuntu 10.04 32bit, Mono 2.8.1.

Any ideas?

Thanks,
Joe


More information about the Mono-aspnet-list mailing list