balbarak / WeasyPrint-netcore

WeasyPrint Wrapper for .Net on Windows
BSD 3-Clause "New" or "Revised" License
70 stars 19 forks source link

Access Denied #5

Closed aditya119 closed 4 years ago

aditya119 commented 4 years ago

Hey! I'm getting "Message":"An error has occurred.","ExceptionMessage":"Access to the path 'C:\\WINDOWS\\SysWOW64\\inetsrv\\weasyprint-v48' is denied.","ExceptionType":"System.UnauthorizedAccessException" when trying to generate pdf from HTML text.

balbarak commented 4 years ago

Hello,

The plugin needs to create folders on project path. Are you putting your solutions in Syswowo64 ?

try to use any place that the project can write files on disk

Thanks

VincentRochet commented 4 years ago

I want into that issue also, this is particularly annoying when deploying in prod environments, as tha user running the service is not supposed to have write access in the folder. What about a fallback to TEMP ?

balbarak commented 4 years ago

Now all files are created in AppData

Thank you for your suggestions