I want to read a QR code using Zbar, a library that reads a QR code.
I get the following error when running.

Exception thrown: 'System.DllNotFoundException' (in libzbar-cil.dll)
An unhandled exception of type'System.DllNotFoundException 'occurred in libzbar-cil.dll
Unable to load DLL 'libzbar-0': The specified module cannot be found. (Exception from HRESULT: 0x8007007E)
Applicable source code
private void button4_Click (object sender, EventArgs e)
            string path = @ "C: \ qrTest \";
            path + = "test.jpg";
            Image img = Image.FromFile (@path);
            ImageScanner scanner = new ImageScanner ();
            List<Symbol>symbols = scanner.Scan (img);


When I try to step ImageScanner scanner = new ImageScanner ();above, I get an error message.

What I tried

Search Nubar for Zbar,

I installed the one in the figure.

I thought it was installed properly because it is also displayed in the reference section.

Why am I getting an error?

Supplemental information (FW/tool version, etc.)

C # Windows 10


The properties of the DLL are as follows.

  • Answer # 1

    Here it is.

    ImageScanner.ScanNaralibzbar-0.dllWhenlibiconv-2.dllI was able to go with it, but I am not sure, so please do it with all DLLs.