webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
621 stars 224 forks source link

ActionAsPdf - BuildFile does not call controller method #228

Open jtsom opened 2 years ago

jtsom commented 2 years ago

I have code that creates an ActionAsPdf object, pointing to a method in an controller. The method is marked as [AllowAnonymous] so permissions is not an issue. There are two almost identical calls to two different methods. One works just fine and generates the PDF, but the second just generates a blank page, never actually calling the controller method to build the partial view.

I've compared both methods and except for parameters, they are called the same. I can call the "not working" method from the browser and it works just fine.

I'm at a loss as to why this isn't working. Some error messages or exceptions would be helpful.