[Mono-dev] Site sometimes runs under wrong .NET runtime

Frank Cohen frankenspank at gmail.com
Sun May 12 13:58:43 UTC 2013


When Apache is restarted, sometimes mod-mono will attempt to run the site
under .NET 2.0 instead of 4.0 like it should be.  Usually another Apache
restart resolves this issue.  It seems to be somewhat random, in other
words, it does not always occur when I restart the site.

I am  running Mono 2.10.9 and Mod-mono 2.10.  Some of the assemblies used
on the site are .NET 2.0 and some are 4.0. I have a few sites running on
the same server, but only one is running mono at this point in time.


httpd.conf:

<IfModule !mod_mono.c>
   LoadModule mono_module /usr/lib64/httpd/modules/mod_mono.so
</IfModule>

<IfModule mod_headers.c>
    Header set X-Powered-By "Mono"
</IfModule>

site.conf:

  #mono specific stuff
   MonoAutoApplication disabled
   AddHandler mono .aspx .ascx .asax .ashx .config .cs .cshtml .asmx .axd
   MonoServerPath "/usr/local/bin/mod-mono-server4"
   MonoApplications www.site.com "/:/var/www/vhosts/site.com/httpdocs"

  <Location "/">
     Allow from all
     Order allow,deny
     MonoSetServerAlias www.site.com
     SetHandler mono
     SetOutputFilter DEFLATE
     SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
  </Location>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130512/68826bec/attachment.html>


More information about the Mono-devel-list mailing list