Comments (16)
For all ... I created an example of use: https://github.com/lkolodziey/UsingDinkToPdf_Example
from dinktopdf.
I finally got to the bottom of this, it turns out the the absolute url being used for images, css etc wasn't accessible from the webserver. Once this was fixed the PDF's were generated fine.
Thanks for your help @lkolodziey
from dinktopdf.
Yes, I did a test right now and works fine.
from dinktopdf.
What did you do to get this working? I am not having any luck getting this running in IIS. I get the error Qt: Could not initialize OLE (error 80010106)
from dinktopdf.
@codingbadger, did you copied the libwkhtmltox.dll to the folder containing your solution dlls?
I did that mistake (I didn´t copy it) and the same error appears to me.
from dinktopdf.
Hi @lkolodziey yes I have done that. It is loading the dll correctly because if I put the 64bit version in, the app crashes with a Bad Image Exception.
from dinktopdf.
@codingbadger, try to put all related files like attached image and try again.
Let´s testing :D Does not matter if you using windows put all files ...
from dinktopdf.
Yep - I have all those files :)
from dinktopdf.
It is so strange.
OK, Is your application running in IIS with "no managed code" (application pool) ?
I your application 64bit configured in IIS (application pool) ?
from dinktopdf.
Yes - App pool is running as "no managed code". The "enable 32 bit applications" is set to False
from dinktopdf.
Basically broken links, good thing that solved.
You are welcome.
from dinktopdf.
Hello, @lkolodziey . Thank you for your sharing, I need your help, because libwkthmltox.dll is not running well in my IIS environment.
I use libwkhtmltox.dll version 0.12.4 for .Net Core 2.0, and I published to IIS version 10.0.14393.0.
I got something error in my browser:
`An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.
C:\inetpub\wwwroot\prisma\Views\Home\Index.cshtml
Metadata file 'C:\inetpub\wwwroot\prisma\libwkhtmltox.dll' could not be opened -- PE image doesn't contain managed metadata.
@{`
Could you share your knowledge about this?
I really appreciate your help! Thanks!
from dinktopdf.
Hi All,
Can i use DinkToPdf with dot net core 2.1?.
I have used it with Asp.net core. it's working on local IIS but not working on Live Server.
Error : Unable to load DLL 'C:\inetpub\wwwroot\myproject\api\bin\libwkhtmltox.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Unable to load DLL 'C:\inetpub\wwwroot\myproject\api\bin\libwkhtmltox.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E).
Please let me know ASAP.
Thanks & Regards,
Ranjeet
from dinktopdf.
Yes you can. Performance of IIS is very bad. Imagine, at first server got 100 request concurrently, which every request will create 1 pdf file. If there is request 101th, it have to wait until 100 request finish.
from dinktopdf.
Hello, I'm from Brazil and I saw that this post is a little bit like my problem.
my application returns the following result:
"A#Could not load file or assembly 'DinkToPdf, Version=1.0.8.0, Culture=neutral, PublicKeyToken=null'"
have you seen something like that?
thanks for listening!
from dinktopdf.
Have you try this before?
#5 (comment)
from dinktopdf.
Related Issues (20)
- not showing page number in docker container
- Unable to give page border with radius. Is there any way?
- Incorrect page number in the footer displayed
- bootstrap format in html partial view HOT 1
- Not able to convert math related symbols
- It is possible to use html footer with page number ?
- nodejs : Depends: libc6 (>= 2.28) but 2.24-11+deb9u4 is to be installed
- css flex not working HOT 4
- I can't generate on a second request HOT 3
- Erro docker linux HOT 2
- Including image in the footer
- HTML tags removed HOT 1
- libwkhtmltox.dylib for mac M1 chip HOT 1
- One or more errors occurred. (Unable to load shared library 'libwkhtmltox' or one of its dependencies HOT 2
- Can't convert Page url to Pdf on Linux HOT 2
- How can I add background-image?
- Footer not working when there is an image
- Docker Image Error on arm64 Linux EC2 Instance HOT 2
- Outline of globalsetting is not working
- library not loading correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dinktopdf.