Im trying to render a html from a view without using a web request. I need the HTML as a string, internally, i do not wish to serve it.
The viewEngine.FindView() re
I had the same issue. I found the answer here: GitHub aspnet/Mvc Issue #4936
Basically, use GetView instead of FindView, like this:
GetView
FindView
var viewResult = razorViewEngine.GetView(viewName, viewName, false);