Click here to Skip to main content
11,414,234 members (71,190 online)
Click here to Skip to main content

Project \ Assembly dependencies viewer

, 11 Jan 2004
Rate this:
Please Sign up or sign in to vote.
This simple application gets any VS.NET project or assembly and displays all the assembly / project dependencies. All dependencies are shown in a tree view with images that indicate the assembly location (Bin, GAC or registered as COM+ component).

Sample Image - viewer.jpg


This application is a part of the installation system that I use. My installation process uses an input XML file that is created by the application, to deploy and register the assemblies in the same locations as in the deploying machine. Using this method I reduce many errors. You can use this application to test your applications in a production environment. You can test and see if all of your application references match the files on your production server and to find out any existing problems.

The code is pretty straight forward. The only complicated part was to find out if a given assembly is registered as a COM+ component. To check it out, you need to get the COM+ component CLSID from COM+ using comadmin.dll, find in registry the CLSID InprocServer32 Key, and check if InprocServer32 Assembly string value matches the given assembly full name.

To navigate through the COM+, I use a wrapper assembly of comadmin.dll which I created using tlbimp.exe. The deploying code is a reference to the wrapper assembly of COM+ 1.5 comadmin.dll. If you are working with COM+ 1.0, you need to recreate the wrapper assembly using tlbimp.exe.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Natty Gur
Web Developer
Israel Israel
Read my blog

Natty Gur is the founder and CTO of “The enterprise architects group” an international enterprise architecture consulting group based in Vestal, NY. Natty has 13 years of experience in the IT field, 7 of them focused on running enterprise architecture in companies and governmental bodies. Natty has written many articles and is a well known speaker on EA topics. You can reach natty at:

Follow on   Twitter

Comments and Discussions

GeneralRed color in the tree Pin
uljo2, 5-Feb-07 21:24
memberuljo25-Feb-07 21:24 
GeneralRe: Red color in the tree Pin
nhenny2000, 25-Sep-07 12:33
membernhenny200025-Sep-07 12:33 
GeneralI Got the solution Pin
avinash barnwal, 9-Jan-07 1:58
memberavinash barnwal9-Jan-07 1:58 
Just Unregister the ComAdmin.dll from the C:\windows\system32\com\Comadmin.dll using

regsvr32 C:\windows\system32\com\Comadmin.dll /u

and register the comadmin.dll (1.0) version copied from the Windows 2000 Server on the Development (XP) PC.

Now Add the Reference to the newly Registered Comadmin.dll.

You will now find the Interop.Comadmin.dll in the Bin Folder of the .NET program using the Comadmin.dll.

Just Run ILDASM.EXE from the VS.NET 2003 Prompt and open this Interop.Comadmin.dll.

You should not find the COMAdminCatalog2 kind of thing in the end of the list.

and then deploy this Interop. and the recompiled .NET EXE to the Windows 2000 Server. and enjoy!!!

Smile | :)

Avinash Barnwal
Software Developer.

Generalpowershell script to list out dependencies. Pin
tovirtualme, 5-Jan-07 6:34
membertovirtualme5-Jan-07 6:34 
QuestionJob Role?? Pin
nc2000, 26-Jun-06 6:18
membernc200026-Jun-06 6:18 
QuestionHow to enlist assemblies? Pin
zux, 8-Nov-04 2:44
memberzux8-Nov-04 2:44 
AnswerRe: How to enlist assemblies? Pin
Natty Gur, 19-Nov-04 10:24
memberNatty Gur19-Nov-04 10:24 
GeneralOther dependecy walker Pin
tolemac, 19-May-04 8:59
membertolemac19-May-04 8:59 
QuestionDoes it make probing? Pin
Ivan Fernandez, 21-Jan-04 6:39
memberIvan Fernandez21-Jan-04 6:39 
AnswerRe: Does it make probing? Pin
Natty Gur, 21-Jan-04 6:46
memberNatty Gur21-Jan-04 6:46 
GeneralA graphical approach Pin
drewnoakes, 13-Jan-04 10:12
memberdrewnoakes13-Jan-04 10:12 
GeneralRe: A graphical approach Pin
Natty Gur, 13-Jan-04 18:25
memberNatty Gur13-Jan-04 18:25 
GeneralRe: A graphical approach Pin
mephianna, 12-Feb-08 0:41
membermephianna12-Feb-08 0:41 
GeneralRe: A graphical approach Pin
oliwan, 24-Jun-08 7:57
memberoliwan24-Jun-08 7:57 
NewsRe: A graphical approach Pin
Drew Noakes, 4-May-11 18:24
memberDrew Noakes4-May-11 18:24 
GeneralInterface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
Claus Brod, 13-Jan-04 2:35
memberClaus Brod13-Jan-04 2:35 
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
Natty Gur, 13-Jan-04 3:09
memberNatty Gur13-Jan-04 3:09 
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
Claus Brod, 13-Jan-04 3:16
memberClaus Brod13-Jan-04 3:16 
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
nedcod, 13-Jan-04 23:41
membernedcod13-Jan-04 23:41 
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
Claus Brod, 14-Jan-04 0:30
memberClaus Brod14-Jan-04 0:30 
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
mayoroj, 2-Aug-05 13:30
membermayoroj2-Aug-05 13:30 
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
ER GovindAgarwal, 12-Sep-12 4:04
groupER GovindAgarwal12-Sep-12 4:04 
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pin
ER GovindAgarwal, 12-Sep-12 4:18
groupER GovindAgarwal12-Sep-12 4:18 
Generaldemo .zip file Pin
Antonio Barros, 12-Jan-04 10:45
memberAntonio Barros12-Jan-04 10:45 
GeneralRe: demo .zip file Pin
Natty Gur, 12-Jan-04 17:56
memberNatty Gur12-Jan-04 17:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150427.2 | Last Updated 12 Jan 2004
Article Copyright 2004 by Natty Gur
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid