Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionAsPdf - BuildFile does not call controller method #228

Open
jtsom opened this issue Nov 22, 2021 · 0 comments
Open

ActionAsPdf - BuildFile does not call controller method #228

jtsom opened this issue Nov 22, 2021 · 0 comments

Comments

@jtsom
Copy link

jtsom commented Nov 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant