In My project <% if (Model.Folders != null){}%> is working fine,when i convert this code to razor format ,i got the exception \"No overload for method \'W
<% if (Model.Folders != null){}%>
I have had the same problem, I solved it by wrapping my Html.RenderPartial as follows:
@{ Html.RenderPartial(ViewData["abc"] as string, Model); }
or