Enlighted_one2020-12-31 01:30:07
visual studio
Enlighted_one, 2020-12-31 01:30:07

After calling a command from a linked library, the program reports that there is no dll in Visual Studio 2017. How to build it correctly?

I am new to Visual studio. With the help of NuGet and some mother, I linked to the Couchbase.lite project.
I'm trying to run a program with elementary commands, the program compiles, runs, but when I click on the button that calls the method from couchbase, it gives the following error:
Message = The type initializer "Couchbase.Lite.Database" threw an exception.
Source = Couchbase.Lite
Stack trace:
to Couchbase.Lite.Database..ctor(String name, DatabaseConfiguration configuration)
to MKK01.Form1.Login_button_Click(Object sender, EventArgs e) to H:\Projects\MKK01\MKK01\Form1.cs :line 38
in System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System .Windows.Forms.Control.WndProc(Message& m)
to System.Windows.Forms.ButtonBase.WndProc(Message& m)
to System.Windows.Forms.Button.WndProc(Message& m)
to System.Windows.Forms.Control.ControlNativeWindow .OnMessage(Message& m)
to System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
to System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
to System.Windows. Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context )
in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
in System.Windows.Forms.Application.Run(Form mainForm)
in MKK01.Program.Main() in H:\Projects\MKK01\ MKK01\Program.cs: line 19
Inner Exception 1:
DllNotFoundException: Cannot load DLL "LiteCore": The specified module could not be found. (Exception from HRESULT: 0x8007007E)
How to properly link or build a project to handle this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question