MVC System.Web.HttpCompileException on Html.RenderPartial
Turns out it was a silly mistake on my part. MVC couldn't compile the Html
from Razor
because I had renamed a property within my Model
, but didn't update it in the .cshtml
.
Turn on Razor Build errors at compile time. Edit your csproj
file and set the following:
<MvcBuildViews>true</MvcBuildViews>
Thanks to JP for this SO post.