Broken RenderPartial After Upgrade To ASP.NET MVC2

Posted by mxmissile on Stack Overflow See other posts from Stack Overflow or by mxmissile
Published on 2010-03-29T18:01:30Z Indexed on 2010/03/29 18:03 UTC
Read the original article Hit count: 910

Filed under:
|

I upgraded a MVC1 project to MVC2, now all my calls to RenderPartial are throwing

System.ArgumentNullException: Value cannot be null.

However this does works:

<% Html.RenderPartial("~/Views/Shared/LogOnUserControl.ascx"); %>

And this does not (works in MVC1):

<% Html.RenderPartial("LogOnUserControl"); %>

Did the behavior of RenderPartial change?

© Stack Overflow or respective owner

Related posts about asp.net-mvc2

Related posts about asp.net-mvc