What's a good tool to analyse assembly dependency in .NET application [closed]
Asked Answered
L

3

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.

Lorenzen answered 28/11, 2011 at 11:13 Comment(1)
A perfect tool for this is AsmSpy - mikehadlow.blogspot.nl/2011/02/…. It shows you which assemblies your assembly is dependent upon.Chromonema
S
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.

Skip answered 28/11, 2011 at 11:27 Comment(2)
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.Lorenzen
You can set the policy with the viewer without messing with the registeryPsychophysiology
W
7

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

Writhe answered 28/11, 2011 at 11:28 Comment(1)
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.Lorenzen
I
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/

Implead answered 28/11, 2011 at 11:21 Comment(1)
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.Lorenzen

© 2022 - 2024 — McMap. All rights reserved.