[Mono-dev] Mono 3.0.2 and Asp.Net MVC3 issue

Matteo Tesser matteo.tesser at gmail.com
Wed Dec 12 10:40:57 UTC 2012

We have some trouble to run an Asp.Net MVC3 under mono 3.0.2 (profile .NET
4.0)  The webapp runs fine under mono 2.10.9.

In details, we are using  lighttpd 1.4.28 (ssl) webserver. the fastcgi
configuration file is the following:

fastcgi.server = (
    "" => ((
        "socket" => "/tmp/fastcgi-mono-server",
                "bin-path" => "/opt/mono/bin/fastcgi-mono-server4",
                "bin-environment" => (
                        "PATH" => "/bin:/usr/bin:/opt/mono/bin",
                        "LD_LIBRARY_PATH" => "/opt/mono/lib:",
                        "MONO_SHARED_DIR" => "/tmp/",
                        "MONO_FCGI_LOGLEVELS" => "Standard",
                        "MONO_FCGI_LOGFILE" => "/tmp/fastcgi.log",
                        "MONO_FCGI_ROOT" => "/var/www/html/ourwebapp",
                        "MONO_FCGI_APPLICATIONS" => "/:."
                "max-procs" => 1,
        "check-local" => "disable"

On the server we installed side-by-side either mono Mono 2.10.9 and  Mono
3.0.2> while executing the web application using lighttp with mono 2.10.9
no big issues are found,  when we use mono 3.0.2  and  the latest XSP
(2.10.2) we obtain an empty responses on the client side and the following
error on the server log

[2012-12-12 10:06:46Z] Notice  Beginning to receive records on connection.
[2012-12-12 10:06:47Z] Error   ERROR PROCESSING REQUEST:
System.TypeInitializationException: An exception was thrown by the type
initializer for Mono.WebServer.FastCgi.WorkerRequest

Server stack trace:
  at Mono.WebServer.FastCgi.ApplicationHost.ProcessRequest
(Mono.WebServer.FastCgi.Responder responder) [0x00000] in <filename
  at (wrapper remoting-invoke-with-check)
  at (wrapper xdomain-dispatch)

Exception rethrown at [0]:
 ---> System.InvalidCastException: Cannot cast from source type to
destination type.
  at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000]
in <filename unknown>:0
  at Mono.WebServer.FastCgi.WorkerRequest..cctor () [0x00000] in <filename
  --- End of inner exception stack trace ---
  at (wrapper xdomain-invoke)
  at (wrapper remoting-invoke-with-check)
  at Mono.WebServer.FastCgi.Responder.Process () [0x00000] in <filename
[2012-12-12 10:06:47Z] Notice  Finished receiving records on connection.

Are we missing something?

Thanks for any hint,
best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121212/d45a9e3e/attachment.html>

More information about the Mono-devel-list mailing list