[Mono-list] Run ASP.Net 4.0 profile
abe.gillespie at gmail.com
Fri Oct 8 11:18:37 EDT 2010
How do you instruct Mono to run the 4.0 profile for an ASP.Net MVC2
site? I'm using the
directive but this doesn't seem to be enough. During startup I get:
System.TypeLoadException: Could not load type
'System.Web.Routing.RouteCollection' from assembly 'System.Web,
Version=184.108.40.206, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I can't use this in the Web.config:
<compilation debug="true" targetFramework="4.0">
because the targetFramework attribute is not recognized.
I've also tried adding:
<add assembly="System.Web, Version=220.127.116.11, Culture=neutral,
to the <compilation><assemblies> collection of the Web.config but this
doesn't seem to help either.
Now if I manually copy the gac's 4.0 System.Web assembly into the
site's bin then I can get a little further than the above stated error
but other badness happens.
More information about the Mono-list