Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Aspose.Words fail to load library #5363


User avatar
0
ivanosw1 created

Hi, I'm trying to use Aspose.Words library on a plugin module but there is a problem to load referenced library. In a classic .Net Core 2.0 web project all works fine as you can see on the attached project.

Aspose.Words and SkiaSharp.dll are in plugin folder, and all runtimes in runtimes folder in root.

When used in a plugin module I have this error:

ERROR 2018-07-11 14:14:33,990 [9    ] Mvc.ExceptionHandling.AbpExceptionFilter - The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception.
System.TypeInitializationException: The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libSkiaSharp': Impossibile trovare il modulo specificato. (Exception from HRESULT: 0x8007007E)

So I think that I have to do something else to use Aspose.Words in AspNetBoilerplate Core 2.0. Can you help me? NetCoreWebApp.zip


2 Answer(s)
  • User Avatar
    0
    ivanosw1 created

    Solved by myself. I can't copy the aspose dlls and related stuff on plugin folder. Nuget packages must be referenced in main framework solution. In this manner all works.

    Sorry for the useless post.

  • User Avatar
    0
    alirizaadiyahsi created

    Thanks ivanosw1 for feedback.