Reputation: 40311
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?
Upvotes: 2
Views: 494
Reputation: 31202
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"/>
Upvotes: 1