MVC 4 with Custom View Engine #44

Closed
kijanawoodard opened this Issue Nov 6, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@kijanawoodard

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.

Thanks.

@webgio

This comment has been minimized.

Show comment
Hide comment
@webgio

webgio May 7, 2014

Owner

@kijanawoodard sorry for answering so late.. just found some time for Rotativa.
Perhaps looking at this issue could help you.
#25

Owner

webgio commented May 7, 2014

@kijanawoodard sorry for answering so late.. just found some time for Rotativa.
Perhaps looking at this issue could help you.
#25

@webgio webgio closed this Nov 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment