Giter VIP home page Giter VIP logo

htmltopdfconverter's Issues

DllNotFoundException: Unable to load DLL

Hi, i'm trying to use your nuget package. I've installed the two packages: HtmlToPdfConverter and HtmlToPdfConverter.Core. I'm running on .netcore 2.2.

Added the services.AddHtmlToPdfConverterService();

However, when i try to run, it cant find the libs:

An error occurred while starting the application.
DllNotFoundException: Unable to load DLL 'C:\GIT\promag\src\ProMag\TJPA.ProMag.UI.Site\bin\Debug\netcoreapp2.2\NativeLibs\X64\libwkhtmltox.dll' or one of its dependencies: Não foi possível encontrar o módulo especificado. (Exception from HRESULT: 0x8007007E)

System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(string unmanagedDllPath)

    DllNotFoundException: Unable to load DLL 'C:\GIT\promag\src\ProMag\TJPA.ProMag.UI.Site\bin\Debug\netcoreapp2.2\NativeLibs\X64\libwkhtmltox.dll' or one of its dependencies: Não foi possível encontrar o módulo especificado. (Exception from HRESULT: 0x8007007E)
        System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(string unmanagedDllPath)
        System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(string unmanagedDllPath)
        HtmlToPdfConverter.Abstractions.Configuration.ServiceCollectionExtenstion.AddHtmlToPdfConverterService(IServiceCollection services)
        TJPA.ProMag.UI.Site.Startup.ConfigureServices(IServiceCollection services) in Startup.cs

                services.AddHtmlToPdfConverterService();

Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

Inside my Solution, Visual Studio have added this:
image

My goal is to run it on Linux with OpenShift platform, creating a docker image from source.
I'm supposed to copy the libwkhtmltox manually to my web project folder? Is there some configuration missing?

Thanks in advance

Runtime error when starting on Azure Web App

It works as intended on a local machine, but on a web app (win-X86) it breaks the start of the application.

This was tested within a .NET 5 framework Blazor WebAssembly APP with a .NET Core server host.

Error message:

HTTP Error 500.30 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Most likely causes:

  • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
  • - IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
  • IIS was not able to process configuration for the Web site or application
  • The authenticated user does not have permission to use this DLL.
  • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try:
Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.

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.