Git Product home page Git Product logo

Comments (4)

pruiz avatar pruiz commented on August 9, 2024

Hi dooburt,

There has been some temporal API changes to allow decreasing the final
assembly size, and now the native libraries has been split into it's own
nuget packages (WkHtmlToXSharp.Win32, etc.). You need to add a reference to
the native libraries required by your environmnet (mos probably win32 onyl)
and use WkHtmlToXLibrariesManager.Register(..) to register each native
bundle before using WkHtmlToXSharp for the first time.

I am still not 100% convenced by this API, and I open to suggestions..
Maybe scanning all AppDomain's assemblies or bin folder for native bundles
would be a better idea..

Regards
Pablo

On Fri, Feb 28, 2014 at 10:41 AM, dooburt [email protected] wrote:

Firstly, great library and with a the two interfaces (single and
multi-thread) this seems to be the programmers choice for html > pdf.

That being said however, I am struggling to get this to work on a
development machine. I get on run 'Exception has been thrown by the target
of an invocation' ... DllNotFoundException, Unable to Load DLL
'wkhtmltox0'. Your documentation says this is automatically created on
first conversion - perhaps this isn't happening? Or I need permissions on
the bin or something? Can you offer any suggestions?

Thanks :)

Reply to this email directly or view it on GitHubhttps://github.com//issues/22
.

from wkhtmltoxsharp.

dooburt avatar dooburt commented on August 9, 2024

Aha! Thank you.
Do you know in what context the file is written? I get System.UnauthorizedAccessException","Message":"Access to the path 'c:\fakepath\invoice-00029.pdf' is denied.". Do you know which user needs permissions for this? IIS_IUSRS?

(btw, fakepath is used for brevity in this example)

from wkhtmltoxsharp.

pruiz avatar pruiz commented on August 9, 2024

AFAIK if you are running under IIS/Managed ASP.NET, that should be
IIS_IUSR, yes..

On Fri, Feb 28, 2014 at 11:03 AM, dooburt [email protected] wrote:

Aha! Thank you.
Do you know in what context the file is written? I get
System.UnauthorizedAccessException","Message":"Access to the path
'c:\fakepath\invoice-00029.pdf' is denied.". Do you know which user needs
permissions for this? IIS_IUSRS?

(btw, fakepath is used for brevity in this example)

Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-36336434
.

from wkhtmltoxsharp.

dooburt avatar dooburt commented on August 9, 2024

Perfect. Thanks a lot. This is working now 👍 :)

I saw you were using NServiceBus and Wk via a third-party service, if you have a blog or description of that setup I'd be very keen to read it.

Once again, great work.

from wkhtmltoxsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.