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

Permissions issue in IIS #17

Open
bobvaselaar opened this issue May 28, 2021 · 1 comment
Open

Permissions issue in IIS #17

bobvaselaar opened this issue May 28, 2021 · 1 comment

Comments

@bobvaselaar
Copy link

I get this error when attempting to create a PDF from inside of IIS 10, Windows Server 2019

            using (WeasyPrintClient client = new WeasyPrintClient())
            { 
                // doc is html string
                var outputPdf = await client.GeneratePdfAsync(doc);  
            }

"Access to the path 'C:\Windows\system32\config\systemprofile\AppData\Roaming\balbarak-weasyprintv51' is denied."

This is fixable by granting access to the path from the app pool user account, but it seems like it shouldn't be trying to access that in the first place.

Great PDF generator by the way. Works great other than the issue above.

@anteeek
Copy link

anteeek commented Jan 30, 2023

Another issue (or non-issue) somewhat related to IIS is that it doesn't seem to work on 32bit app pools - it silently fails and returns null. However, simply switching to 64bit solves the issue.
And, yeah, I agree that this is the best generator for web apps I found - all the wkhtmltopdf don't work with more legacy .net versions and/or have big concurrency issues

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

2 participants