[Mono-list] ASP.NET MVC 3 Preview and mono

Tomi bosak.tomas at gmail.com
Wed Jul 28 13:34:46 EDT 2010


Hi mono folks. I just compiled todays mono tarball (20100728) with
--enable-profile4=yes and tried to run default ASP.NET MVC 3
application which requires C# 4.0 (I'm running mod_mono 2.6.3 and
apache). I included System.Web.Mvc (version 3.0) in the bin folder.
The result is

------------------------------------------------------
Compilation Error

Description: Error compiling a resource required to service this
request. Review your source file and modify it to fix this error.

Compiler Error Message: CS0011: Could not load type
'System.Web.Mvc.ExpressionUtil.FastTrack`2[TModel,TValue]' from
assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.

~/Global.asax

Show Detailed Compiler Output:

gmcs /target:library /lib:"/var/www/test1/Bin" /debug+ /optimize-
/warn:0 /out:"/tmp/somebody-temp-aspnet-0/3a22e9d6/App_global.asax_31fb2206.dll"
/r:"/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll"
/r:"/usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll"
/r:"/usr/local/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll"
/r:"/usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll"
/r:"/usr/local/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll"
/r:"/usr/local/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll"
/r:"/usr/local/lib/mono/gac/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll"
/r:"/usr/local/lib/mono/gac/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll"
/r:"/usr/local/lib/mono/gac/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll"
/r:"/usr/local/lib/mono/gac/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll"
/r:"/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll"
/r:"/usr/local/lib/mono/gac/System.Web.Abstractions/3.5.0.0__31bf3856ad364e35/System.Web.Abstractions.dll"
/r:"/usr/local/lib/mono/gac/System.Web.Routing/3.5.0.0__31bf3856ad364e35/System.Web.Routing.dll"
/r:"/var/www/test1/bin/System.Web.Mvc.dll"
/r:"/tmp/somebody-temp-aspnet-0/3dcb7b1/assembly/shadow/8d8c0061/ff82a969_720ea908_00000001/MVC3Test.dll"
 /nowarn:0169 /d:DEBUG  --
"/tmp/somebody-temp-aspnet-0/3a22e9d6/App_global.asax_31fb2206_0.cs"

error CS0011: Could not load type
'System.Web.Mvc.ExpressionUtil.FastTrack`2[TModel,TValue]' from
assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.

------------------------------------------------------

I also tried dmcs to compile this stuff, but the result is:

error CS0030: Cannot convert type `System.Web.Profile.ProfileBase' to
`System.Web.Profile.DefaultProfile'

root at ubuntu:/var/www/test1/bin# dmcs /target:library
/lib:"/var/www/test1/Bin" /debug+ /optimize- /warn:0
/out:"/tmp/somebody-temp-aspnet-0/3a22e9d6/App_global.asax_31fb2206.dll"
/r:"/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll"
/r:"/usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll"
/r:"/usr/local/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll"
/r:"/usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll"
/r:"/usr/local/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll"
/r:"/usr/local/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll"
/r:"/usr/local/lib/mono/gac/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll"
/r:"/usr/local/lib/mono/gac/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll"
/r:"/usr/local/lib/mono/gac/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll"
/r:"/usr/local/lib/mono/gac/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll"
/r:"/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll"
/r:"/usr/local/lib/mono/gac/System.Web.Abstractions/3.5.0.0__31bf3856ad364e35/System.Web.Abstractions.dll"
/r:"/usr/local/lib/mono/gac/System.Web.Routing/3.5.0.0__31bf3856ad364e35/System.Web.Routing.dll"
/r:"/var/www/test1/bin/System.Web.Mvc.dll"
/r:"/tmp/somebody-temp-aspnet-0/3dcb7b1/assembly/shadow/8d8c0061/ff82a969_720ea908_00000001/MVC3Test.dll"
 /nowarn:0169 /d:DEBUG  --
"/tmp/somebody-temp-aspnet-0/3a22e9d6/App_global.asax_31fb2206_0.cs"
/tmp/somebody-temp-aspnet-0/3a22e9d6/App_global.asax_31fb2206_0.cs(46,25):
error CS0030: Cannot convert type `System.Web.Profile.ProfileBase' to
`System.Web.Profile.DefaultProfile'
/usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
(Location of the symbol related to previous error)
/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll
(Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

------------------------------------------------------

Is this a problem of C# 4.0 features in mono, my mono/mod_mono
configuration or something else?


More information about the Mono-list mailing list