14

I know there are many tools. I want to find out a good tool to show me what assembly is missing. I encountered an exception saying that one of the dependency assembly might be missing when I tried to run a .NET app.

UPDATE

I want to test it on live server. Thus, ideally, I can run it without changes to the server. I can install application on the server.

Thanks in advance.

Mark Sowul
  • 10,244
  • 1
  • 45
  • 51
Pingpong
  • 7,681
  • 21
  • 83
  • 209
  • A perfect tool for this is AsmSpy - http://mikehadlow.blogspot.nl/2011/02/asmspy-little-tool-to-help-fix-assembly.html. It shows you which assemblies your assembly is dependent upon. – Alexander van Trijffel Feb 10 '15 at 14:20

3 Answers3

9

To check for runtime binding errors, one simple and efficient way is to turn on Fusion log (just change HKLM\Software\Microsoft\Fusion\ForceLog to 1 in the registry). This will allow you to check the detailed logs on the error in the Exception.FusionLog property and also examine details via the Assembly Binding Log Viewer.

Scott Hanselman has a good article on the point.

mcm69
  • 670
  • 6
  • 14
  • Thanks! I want to test it on live server. Thus, ideally, I can run it without changes to the server. I can install application on the server. – Pingpong Nov 28 '11 at 11:37
  • You can set the policy with the viewer without messing with the registery – Mark Sowul Jul 29 '16 at 13:28
7

I once used Dependeny Walker, specifically for .NET is the Assembly Depenency Analyser

slfan
  • 8,950
  • 115
  • 65
  • 78
  • Thank you for your advice. I want to test it on live server. Thus, ideally, I can run it without changes to the server. I can install application on the server. – Pingpong Nov 28 '11 at 11:37
3

I would look at using the Dot Net Reflector:

http://en.wikipedia.org/wiki/.NET_Reflector

Or Dot Peek from jet brains:

http://www.jetbrains.com/decompiler/

Richard
  • 21,728
  • 13
  • 62
  • 101
  • Thank you for your advice. I want to test it on live server. Thus, ideally, I can run it without changes to the server. I can install application on the server. – Pingpong Nov 28 '11 at 11:37