I'm trying to render an .ascx file to a string using this method
How to Render Partial View into a String
And it works fine. But if the .ascx file that I'm trying to render contains another .ascx file rendered like so
<%= Html.Partial("Picture/ProfilePicture", pictureThumb)%>
I get the exception
View cannot be null
when rendering ProfilePicture.ascx