Rotativa 1.6.4 keeps issuing System.NullReferenceException in Rotativa.dll
Specifically it occurs on BuildPdf(context)
I have tried Thread, Task and other background type jobs. Why? The PDF generation is extremely slow at times and buggy using ActionAsPdf (see Here) so I want to spin it off to a new thread/task or background job, and only log errors, so I can get the user back on their way asap.
The BuildPdf takes the current controller context, which always is going in null I've tried making a new context, using httpcontext, making a new instance of controller all with same results. Once it gets into the Rotativa.dll the context is compeltely gone, no matter if I pass it in from before I being the Thread/Task, or create a new one right before I call BuildPdf();
How do I get a valid controller context from either before I begin the thread/task job, or once inside the thread/task job into Rotativa?
At this point I'm more than ready to spend real money on a real PDF solution, but so far it seems they all are PITA and are only mediocre at best even if you have the most simplistic child needs of PDF.