Error : Could not load file or assembly or one of it's dependencies

63,412

Solution 1

Yeah...!!! I found a solution for this terrible error... First of all Thanks for every one who tried to help me... Here's my solution...

  1. Right Click on the Solution name
  2. Click Clean Solution
  3. Restart Visual Studio
  4. Goto project Properties >> Build
  5. Change Configuration to Release
  6. Start Debugging (F5)

1) , 2)

Right Click on the Solution name

4) , 5)

Change Configuration to Release

Next time keep in mind to keep a recent backup of your project folder.

Solution 2

Solving build errors is pretty much impossible without having direct access to your projects or solution. But I'll try and give you some guidance to find the root of your problem.

According to the error message you're receiving, the of the build-error is being caused by a project called "Power". Look in the References of that project and see if any are missing or corrupt. You can tell if there is a yellow exclamation-mark next to it. Simply remove that reference and add it again.

Solution 3

Try Following

Remove Temporary Files C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files Close Visual studio and Open Again

0r

Remove and Add the same DLLs (Note: you add the same matching versions)

Share:
63,412
Roshana Pitigala
Author by

Roshana Pitigala

(රෝෂන පිටිගල) Started with batch, then to c#, now java above all. You may get help from me under java, android, java-ee, jsp, servlets, swing, hibernate and mysql. Don't forget to upvote! Check out my open-source projects in my blog. My content in Stack Exchange network Sri Lankan Profiles Ranked By Reputation How to validate reCAPTCHA V2 Java (Servlet) Impact to ButterKnife from “Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them as annotation attributes” API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()' FirebaseCrashlytics: Create report HTTP request failed. okhttp3 timeout

Updated on June 21, 2020

Comments

  • Roshana Pitigala
    Roshana Pitigala almost 4 years

    error massage

    My current project name is "Power". I have been working on this project for weeks now, and it's almost over now. But today when I try to Debug, this error came.

    Error while trying to run project: Could not load file or assembly 'Power' or one of its dependencies. The module was expected to contain an assembly manifest.

    I compared the project folder in Documents with another project folder but nothing seemed to be missing. (ex: *.cs , *.resx , *.config , *.manifest) I didn't delete anything from the project folder.

    • Visual Studio 2010
    • C#.net
    • .NETFRAMEWORK 4.0

    Please help me to solve this. ThankYou!