Could not load file or assembly 'Dapper, Version=1.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies

StackOverflow https://stackoverflow.com/questions/23576036

  •  19-07-2023
  •  | 
  •  

Question

I am unable to solve this problem, "System.Exception : Could not load file or assembly 'Dapper, Version=1.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

I have check the references in all of the projects in my solution, checked the nuget packages, checked the project file and cant find any reference to Dapper Version 1.8.0.0.

When I try and run tests it fails and I can't move my ASP.NET MVC application forward.

Any thoughts on what else to try?

Was it helpful?

Solution

The best way to diagnose the DllNotFoundException is to enable fusion log viewer. Here is what you need to do: Open the Visual Studio Developer command prompt as an Administrator -> type in fuslogvw -> -> Click settings -> select Log bind failure to disk (You can set a custom path for the log files). Run your application and start reading the logs (The log title will most likely contain your DLL name). Don't forget to disable logging after you are done or your hard drive will be filled in no time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top