H
H
Hikky2020-08-31 21:00:32
C++ / C#
Hikky, 2020-08-31 21:00:32

How to connect to MySQL in C#?

I'm trying to connect to the database, an error occurs that something was not found there. I used the standard method described on off. site , it didn’t help ... I also found this info:

Sometimes an attempt to perform an Open on a connection object can fail, generating an exception that can be handled using standard exception handling code.

Screen
DdsFBOi.png

HELP!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hikky, 2020-09-02
@Hikky

The problem was solved by one line inscribed in the PropertyGroup)))

<PropertyGroup>
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  </PropertyGroup>

V
Vladimir Korotenko, 2020-09-01
@firedragon

It is very similar to the fact that you copy-pasted the old code.
Open the app and update the nuget packages.
After that it should work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question