Could not load file or assembly or one of its dependencies

前端 未结 30 1307
生来不讨喜
生来不讨喜 2020-11-22 03:18

I\'m having another of these \"Could not load file or assembly or one of its dependencies\" problems.

Additional information: Could not load file or

相关标签:
30条回答
  • 2020-11-22 04:01

    Not sure if this might help.

    Check that the Assembly name and the Default namespace in the Properies in your asemblies match. This resolved my issue which yielded the same error.

    0 讨论(0)
  • 2020-11-22 04:01

    I "Set as Startup Project" the unloaded/unfound library/project.

    Then deployed it.

    It worked!

    I think it couldn't found the .dll because it was not in the assembly at first.

    0 讨论(0)
  • 2020-11-22 04:03

    In solution explorer right click on project (not solution), in build tab choose Platform target : "Any CPU".

    0 讨论(0)
  • 2020-11-22 04:05

    Despite the original question being posted five years ago, the problem still persists and is rather annoying.

    The general solution is thorough analysis of all referenced assemblies to understand what's going wrong. To make this task easier I made a tool (a Visual Studio extension) which allows selecting a .NET assembly (a .dll or .exe file) to get a graph of all the referenced assemblies while highlighting conflicting or missing references.

    The tool is available in Visual Studio Gallery: https://marketplace.visualstudio.com/vsgallery/051172f3-4b30-4bbc-8da6-d55f70402734

    Example of output:

    0 讨论(0)
  • 2020-11-22 04:05

    if you are getting this error message by opening an application on you windows xp it mean first you have installed that app due to its not working without net framework 4 and service pack 3 . you installed both and again you are getting this error so you should reinstall that app again but first uninstall from add and remove

    if this not work please dont abuse me . i am also a junior

    0 讨论(0)
  • 2020-11-22 04:06

    I also got this terrible error and found a solution for this...

    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)

    4) , 5)

    Hope this will help you also.

    0 讨论(0)
提交回复
热议问题