[Mono-dev] ASP.NET MVC 3 with Razor on Mono 2.10.1 ?
grendel at twistedcode.net
Mon May 2 07:45:58 EDT 2011
On Mon, 02 May 2011 07:19:34 +0200
Quandary <quandary82 at hailmail.net> wrote:
> Nope, doesn't go away.
> Besides, I don't use Entity, it was just referenced by a JQuery example
> I integrated (with removing everything Entity).
Run your application with xsp4 like this:
MONO_LOG_MASK=asm MONO_LOG_LEVEL=debug xsp4
and examine the output - it will let you know about any possible missing assemblies. Also, make
sure that you don't mix assemblies from two different Mono versions.
> >> MyProject.dll System.Web.Routing.dll
> >> System.Web.Entity.dll System.Web.WebPages.Administration.dll
> >> System.Web.Extensions.dll System.Web.WebPages.Deployment.dll
> >> System.Web.Helpers.dll System.Web.WebPages.dll
> >> System.Web.Mvc.dll System.Web.WebPages.Razor.dll
> > You must remove System.Web.Entity (Mono doesn't have the EntityFramework), System.Web.Extensions
> > (it's probably a .NET assembly, Mono has its own version - the .NET one will not work with
> > Mono), System.Web.Routing (the same - Mono has its own version, also in .NET 4.0 this assembly
> > is practically empty since the routing classes were moved to System.Web proper)
> >> and now I get this error on http://localhost:8080 :
> >> /Could not load type 'System.Web.WebPages.Razor.RazorBuildProvider'
> >> from assembly 'System.Web.WebPages.Razor, Version=22.214.171.124,
> >> Culture=neutral, PublicKeyToken=31bf3856ad364e35'./
> > This might go away after you remove the assemblies I listed above.
> >> And if I switch to http://localhost:8080/Sandbox, I get this:
> >> /Invalid IL code in System.Web.Handlers.ScriptModule:.ctor ():
> >> method body is empty./
> >> *Description: *HTTP 500. Error processing request.
> >> *Stack Trace:*
> >> System.InvalidProgramException: Invalid IL code in System.Web.Handlers.ScriptModule:.ctor ():
> >> method body is empty.
> >> at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
> >> (System.Reflection.MonoCMethod,object,object,System.Exception&) at
> >> System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr,
> >> System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo
> >> culture) [0x00000] in <filename unknown>:0
> > This looks like a genuine bug, although let's see if removing the aforementioned assemblies
> > helps here as well.
> > Also, please consider upgrading your Mono to version 2.10.2 - it includes important fixes which
> > apply to ASP.NET and related technologies.
> > marek
> >> On 05/01/2011 01:09 AM, Robert Jordan wrote:
> >>> On 30.04.2011 23:08, Quandary wrote:
> >>>> Hi,
> >>>> I'm trying to get ASP.NET MVC3 with Razor to run on Linux.
> >>>> I localcopied all necessary dll's
> >>>> (
> >>>> System.Web.Helpers.dll
> >>>> System.Web.Mvc.dll
> >>>> System.Web.Razor.dll
> >>>> System.Web.WebPages.dll
> >>>> )
> >>> You need to copy more MS assemblies into your app's bin directory:
> >>> System.Web.Mvc.dll
> >>> System.Web.Razor.dll
> >>> System.Web.WebPages.dll
> >>> System.Web.WebPages.Deployment.dll
> >>> System.Web.WebPages.Razor.dll
> >>> Robert
> >>> _______________________________________________
> >>> Mono-devel-list mailing list
> >>> Mono-devel-list at lists.ximian.com
> >>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list