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

Matteo Tesser matteo.tesser at gmail.com
Wed Dec 12 16:56:13 UTC 2012


Thanks to everybody,
I confirm that if we use the latest xsp got from github everything works
fine

our wrong assumptions was that the latest xsp could be found below
http://download.mono-project.com/sources/xsp/

Matteo



On Wed, Dec 12, 2012 at 5:10 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:

> XSP version to be used with mono must be the same one as of mono. We don't
> support mixing different versions.
>
>
> On Wed, Dec 12, 2012 at 7:19 AM, Daniel Lo Nigro <lists at dan.cx> wrote:
>
>> Also I don't think XSP 2.10.2 is fully compatible with Mono 3. There's
>> been some small changes and you will either need to grab the 3.0 version
>> from Github (either the 3.0 tag, or the latest "master" version if you want
>> the latest fixes). See https://github.com/mono/xsp
>>
>>
>> On Wed, Dec 12, 2012 at 11:16 PM, Daniel Lo Nigro <lists at dan.cx> wrote:
>>
>>> 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
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> 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/1b587d0f/attachment-0001.html>


More information about the Mono-devel-list mailing list