DLL Not Found

2

When I run my application, I am aware of the error warning, stating DAL.dll was not found. I have no idea what it can be, I'm following a tutorial, these are my first steps with C #. I'm using VS 2017.

    
asked by anonymous 27.04.2017 / 01:38

1 answer

2

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

Some explanations before:
The bin folder receives DLLs of your project after Solution Build. If you give Clean to the project, these DLLs will be removed until a Build is done again.

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

If it is checked and still not generating the DLLs , follow the steps in Solution 1 and if it does not work try Solution 2 :

Solution 1
  • From Clean to Solution
  • Right click on the layer of your application and in frammework , check which version is set (in my case 4.5.1).
  • Go in the same option as the 2 item on all other layers and set all frameworks to the same version.
  • Save your project and a Build
  • Solution 2
  • From Clean to Solution
  • Restart Visual Studio
  • Uncheck the Builds as explained above and click apply
  • Check them again, click Apply, and Ok
  • From Build to Solution and check that DLLs were generated
  • Check this question in SOen with other possible solutions.     

    27.04.2017 / 02:44