fpanaccia / Wkhtmltopdf.NetCore-deprecated

Rotativa + Net Core
The Unlicense
220 stars 94 forks source link

Error on run Docker #67

Closed eduardombraga closed 2 years ago

eduardombraga commented 2 years ago

EXCEPTION: System.ComponentModel.Win32Exception (13): Permission denied\n at Wkhtmltopdf.NetCore.GeneratePdf.GetByteArray[T](String View, T model)\n

Jefferycheng commented 2 years ago

I thought this exception is because your dotnet app don't have enough permission to get the wkhtmltopdf file.

See the example repository.

https://github.com/fpanaccia/Wkhtmltopdf.NetCore.Example/blob/master/Rotativa/Dockerfile#L15

eduardombraga commented 2 years ago

Thank you it worked!