Apr 26, 2012, 7:41 PM
[CLOSED] Problem rendering partial view
Hi,
I have the code below to render a ext partial view in my MVC3 application using Razor view engine
I have the code below to render a ext partial view in my MVC3 application using Razor view engine
@Html.RenderExtPartial("north.csthml");
But I got an exception saying "Object reference not set to an instance of an object." and here is the line where the exception occurs in PartialViewRender.cs:string path = ((WebFormView)view).ViewPath;
looks like the viewengine was casted to WebFormView even if I am using Razor. Could someone please look into this? Thanks.
Last edited by Daniil; May 02, 2012 at 9:43 PM.
Reason: [CLOSED]