Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

250
Views
Could not load file or assembly - dll from class library is not copied over to asp.net project bin folder

I added new nuget packages to a class library that is a project reference to an asp.net wep api project (4.6.2 version). When I start the api project an exception is thrown and I see this error message naming the packages I added.

  • Could not load file or assembly

I used the Fusion Log Viewer to see logs for binding failures. I was able to see more log information of what was happening but nothing to point me to a solution. I also used this tool which made it easier to view the log file Fusion++. I tried different package versions, changing the copy local property for the specific reference from true to false and then back to true and cleaning bin folders. No luck! The .dll for the packages I added are in the class library bin folder but not in the bin folder of the web api project. The other .dll files are there for other references, just not the new ones I added. Some process is copying the dll files over to the other project, except the new ones I added.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I solved the problem by finding references to the dlls that had been copied to the other project inside the properties view of the project where the packages had been installed. There were Post-Build Events using xcopy to copy the files to the api project. For reference this post explains what I found and what I had to do to get the dlls copied over. Post-Build Events and xcopy

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!