[Mono-dev] ASP.NET MVC 3 with Razor on Mono 2.10.1 ?
quandary82 at hailmail.net
Mon May 2 01:19:34 EDT 2011
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).
On 05/01/2011 08:56 PM, Marek Habersack wrote:
> On Sun, 01 May 2011 18:52:21 +0200
> Quandary <quandary82 at hailmail.net> wrote:
>> Thanks Robert, that helped somewhat.
>> Now, the following dll's are in the bin directory:
>> ls *.dll
>> 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=188.8.131.52,
>> 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.
>> On 05/01/2011 01:09 AM, Robert Jordan wrote:
>>> On 30.04.2011 23:08, Quandary wrote:
>>>> I'm trying to get ASP.NET MVC3 with Razor to run on Linux.
>>>> I localcopied all necessary dll's
>>> You need to copy more MS assemblies into your app's bin directory:
>>> Mono-devel-list mailing list
>>> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list