Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MVC 4 with Custom View Engine #44
I'm having a strange issue. I'm using MVC 4 and a custom view engine. Rotativa is throwing on a "missing view" as indicated by source code: https://github.com/webgio/Rotativa/blob/master/Rotativa/ViewAsPdf.cs#L95.
The problem is that it's searching the default mvc locations for the view and not the ones specified by the custom view engine. The custom view engine has been in place for a while and works for other scenarios.
In fact, running https://github.com/webgio/Rotativa/blob/master/Rotativa/ViewAsPdf.cs#L69 in my own code finds the view as expected.
My best guess is that Rotativa is compiled against MVC3 and the static is somehow returning a different instance.
Before I continue investigating, I was wondering if you had seen this issue before or had any suggestions.