Skip to content

Unable to load DLL 'libvirt-0.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) #4

@Alex-1357

Description

@Alex-1357

I have successfully installed your library in Visual Studio 2019

 Install-Package libvirt-dotnet -Version 1.0.8

However, try to start show me this result

System.TypeInitializationException
  HResult=0x80131534
  Message=The type initializer for 'Libvirt.LibvirtConnection' threw an exception.
  Source=libvirt-dotnet
  StackTrace:
   at Libvirt.LibvirtConnection.get_Create()
   at LibvirtNetCoreWrapper.Program.Main(String[] args) in E:\Projects\CryptoChestMax\LibvirtNetCoreWrapper\LibvirtNetCoreWrapper\Program.vb:line 7

Inner Exception 1:
DllNotFoundException: Unable to load DLL 'libvirt-0.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

Registry_12162021_014459

Now I debug my application with VS2019 in Windows and than it will be deployed in Linux. I found this library in C:\Program Files (x86)\VirtViewer v9.0-256\bin (this is VNC/SPICE viewer from LibVirt). I found this lib and change project working lib to C:\Program Files (x86)\VirtViewer v9.0-256\bin - but no result, error message not changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions