DLL Not found

Asked

Viewed 1,739 times

4

when running my application, I’m receiving the error warning, informing DAL.dll has not been found. I have no idea what it might be, I’m following a tutorial, these are my first steps with C#. I’m using VS 2017.inserir a descrição da imagem aqui

  • 1

    I edited the answer. Try following solution 1 steps now.

1 answer

2


Searching for the same problem, I was able to correct after a few attempts.

First a few explanations:
The bin folder receives the DLLs of your project after the Solution. If you give a Clean in the project, those DLLs will be removed until a Build be performed again.

Try this to fix:
Right click on Solution in Solution Explorer -> Properties -> Configuration Properties and check the checkbox Build is checked for each of the layers.

In case you’re checking and you’re still not generating DLLs, follow the steps of Solution 1 and if it doesn’t work try to Solution 2:

Solution 1

  1. Of a Clean in his Solution
  2. Right click on your layer applying and, in frammework, check which version is set (in my case 4.5.1).
  3. Go to the same option as the item 2 in all other layers and set all frameworks for the same version.
  4. Save your project and a Build

Solution 2

  1. Of a Cleanin his Solution
  2. Restart the Visual Studio
  3. Clear the Builds as explained above and click on apply
  4. Check them again, click Apply and Ok
  5. Of a Build in his Solution and check whether the DLLs were generated

Check that question in Soen with other possible solutions.

  • 1

    Nothing done, persists the same problem. Can be a problem in visual studio 2017? A friend is also doing this same example and did not have this problem.

  • It may have something to do with the yes version. My project that gave this error was in VS 2013 at work. But it’s likely to be something in the project and not in VS. It uses in different version of its?

  • Yes, it uses the 2015 version. I’m thinking of redoing the installation, for 2015 version. I’m using windows 10, it will be some incompatibility?

  • It is not the OS. If you want you can send your project to open in his VS. So you know if it is something in the project or in the version.

  • Blz will do it. As soon as I do, I’ll let you know. Thank you very much for your help. Hugs

  • 1

    George, I figured it out. It was the version of the Net framework, the most current version was giving this error, I changed the project to use version 4.5.1 and it worked. Thanks for the help. Hugs

  • Cool @Leonardoguimarães, if it helped you mark as a response on the button below the vote or if you used other steps, you can post your solution and mark as a response to help other users.

  • Can I post here as a comment? Or do you have a specific location? I’m new to this solution.

  • If it is just an addendum to the answer, it can be comment yes. But if necessary you can answer your own question. If you have questions please visit the Tour.

Show 4 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.