I'm trying to using the Html.RenderAction<> method from the ASP.NET MVC Futures library. However, I can only make this work if my project references the System.Web.Mvc assembly in the GAC. If I include the System.Web.Mvc source code as a project in my solution, then everything with Microsoft.Web.Mvc blows up. Anyone else have this experience? Ideas?
views:
291answers:
2
+1
A:
To use MVC source code, there are two web.config files to edit : - /web.config - /views/web.config
You have to remove the PublicKey attribute from those lines (by memory, the example below may not be 100% accurate, but you get the idea :)):
<add assembly="System.Web.Mvc, Version=x.y.z.a, Culture=neutral, PublicKeyToken=0123456789101112"/>
or
<add tagPrefix="asp" namespace="System.Web.Mvc" assembly="System.Web.Mvc, Version=x.y.z.a, Culture=neutral, PublicKeyToken=0123456789101112"/>
so it becomes
<add assembly="System.Web.Mvc, Version=x.y.z.a, Culture=neutral, PublicKeyToken=null"/>
or
<add tagPrefix="asp" namespace="System.Web.Mvc" assembly="System.Web.Mvc, Version=x.y.z.a, Culture=neutral, PublicKeyToken=null"/>
mathieu
2009-03-05 08:36:19
It's a total pain in the rear. I wish the MS team would do a better job at making these early releases integrate smoother.
GeekyMonkey
2009-03-05 08:48:14
This only worked for me if I dont use ASP.NET MVC Futures. If I use ASP.NET MVC Futures I get: CS0012: The Type "System.Web.Mvc.Controller" is contained in a unreferenced assembly.
Malcolm Frexner
2009-06-29 20:50:52
A:
There is useful Steve Sanderson's article about using ASP.NET MVC source code in your solution
eu-ge-ne
2009-04-02 18:29:23