I got the same error some time ago.
Somehow, one of the project's .dll was deleted and it wasn't being loaded anymore.
What to do
If your situation is the same as I past throw, here is how you should proceed:
Step 1
As you can see, my solution Criativa
contains a C# project library called Criativa.Infra.Repository
, when accessing the obj > Debug > net6.0
we will find no .dll
, and this is possibly your problem.

Step 2
To fix it, open the solution on Visual Studio, find your project, click with the right button, and select "Rebuild".

Finish
After these steps, if your problem was the non-existence of the .dll file, it will be running now.

Best regards, Angelo.