Skip to content

Qt: Could not initialize OLE (error 80010106)Β #119

@mboukhlouf

Description

@mboukhlouf

I'm working on a ASP.NET Core MVC app and I wanted to use DinkToPdf library to convert Html to PDF.
I get this error in the console, when I first access a page that uses the IConverter from the services:

Qt: Could not initialize OLE (error 80010106)

I still get the PDF with no issues.
I think the issue is somewhere around calling: new SynchronizedConverter(new PdfTools())
As I have it in the services as a singleton and only called the first time it's accessed:

services.AddSingleton(typeof(IConverter), new SynchronizedConverter(new PdfTools()));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions