Click here to Skip to main content
Licence 
First Posted 11 Jan 2004
Views 108,708
Downloads 562
Bookmarked 25 times

Project \ Assembly dependencies viewer

By Natty Gur | 11 Jan 2004
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).
2 votes, 13.3%
1

2
2 votes, 13.3%
3
2 votes, 13.3%
4
9 votes, 60.0%
5
4.50/5 - 15 votes
2 removed
μ 4.22, σa 2.57 [?]

Sample Image - viewer.jpg

Introduction

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.

License

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

Member
Read my blog

 
http://weblogs.asp.net/ngur

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: natty@theeagroup.net



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralRed color in the tree Pinmemberuljo221:24 5 Feb '07  
GeneralRe: Red color in the tree Pinmembernhenny200012:33 25 Sep '07  
GeneralI Got the solution Pinmemberavinash barnwal1:58 9 Jan '07  
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!!!
 
Enjoy!
Smile | :)
 
Avinash Barnwal
Software Developer.
FQS

Generalpowershell script to list out dependencies. Pinmembertovirtualme6:34 5 Jan '07  
QuestionJob Role?? Pinmembernc20006:18 26 Jun '06  
QuestionHow to enlist assemblies? Pinmemberzux2:44 8 Nov '04  
AnswerRe: How to enlist assemblies? PinmemberNatty Gur10:24 19 Nov '04  
GeneralOther dependecy walker Pinmembertolemac8:59 19 May '04  
QuestionDoes it make probing? PinmemberIvan Fernandez6:39 21 Jan '04  
AnswerRe: Does it make probing? PinmemberNatty Gur6:46 21 Jan '04  
GeneralA graphical approach Pinmemberdrewnoakes10:12 13 Jan '04  
GeneralRe: A graphical approach PinmemberNatty Gur18:25 13 Jan '04  
GeneralRe: A graphical approach Pinmembermephianna0:41 12 Feb '08  
GeneralRe: A graphical approach Pinmemberoliwan7:57 24 Jun '08  
NewsRe: A graphical approach PinmemberDrew Noakes18:24 4 May '11  
GeneralInterface Interop.COMAdmin.ICOMAdminCatalog2 failed PinmemberClaus Brod2:35 13 Jan '04  
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed PinmemberNatty Gur3:09 13 Jan '04  
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed PinmemberClaus Brod3:16 13 Jan '04  
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pinmembernedcod23:41 13 Jan '04  
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed PinmemberClaus Brod0:30 14 Jan '04  
GeneralRe: Interface Interop.COMAdmin.ICOMAdminCatalog2 failed Pinmembermayoroj13:30 2 Aug '05  
Generaldemo .zip file PinmemberAntonio Barros10:45 12 Jan '04  
GeneralRe: demo .zip file PinmemberNatty Gur17:56 12 Jan '04  

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.

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