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

Daniel Lo Nigro lists at dan.cx
Wed Dec 12 12:16:09 UTC 2012


This usually points to an error in your Web.config file. Ensure it doesn't
have any references to Entity Framework, as Mono doesn't support Entity
Framework (other than the alpha version of Entity Framework 6).

Can you post your whole Web.config file (removing any sensitive data if
necessary)?


On Wed, Dec 12, 2012 at 9:40 PM, Matteo Tesser <matteo.tesser at gmail.com>wrote:

> Hello,
> 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
> unknown>:0
>   at (wrapper remoting-invoke-with-check)
> Mono.WebServer.FastCgi.ApplicationHost:ProcessRequest
> (Mono.WebServer.FastCgi.Responder)
>   at (wrapper xdomain-dispatch)
> Mono.WebServer.FastCgi.ApplicationHost:ProcessRequest
> (object,byte[]&,byte[]&)
>
> 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
> unknown>:0
>   --- End of inner exception stack trace ---
>   at (wrapper xdomain-invoke)
> Mono.WebServer.FastCgi.ApplicationHost:ProcessRequest
> (Mono.WebServer.FastCgi.Responder)
>   at (wrapper remoting-invoke-with-check)
> Mono.WebServer.FastCgi.ApplicationHost:ProcessRequest
> (Mono.WebServer.FastCgi.Responder)
>   at Mono.WebServer.FastCgi.Responder.Process () [0x00000] in <filename
> unknown>:0
> [2012-12-12 10:06:47Z] Notice  Finished receiving records on connection.
>
>
> Are we missing something?
>
> Thanks for any hint,
> best regards,
> Matteo
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121212/5856f5d1/attachment.html>


More information about the Mono-devel-list mailing list