Confirm Asseblies have been deployed to GAC

G

Guest

Hi,
can some confirm what is the best way (via code / script) to determine
that all assemblies as part of a deployment are installed.
We had a live issue recently when a rarely used assembly had an attempt to
invoke one of its methods. It turns out the assembly was not in the GAC. This
failed causing downtime. We would ideally like to check post deployment from
a list we have prepared that all desired assemblies are in the GAC.

Any help greatly appreciated.
 
G

Guest

Thanks Vadym, but the documentation that I saw strongly advises not to use
the API's. Is there another mechanism?
 
V

Vadym Stetsyak

Hello, Bakunin!

B> Thanks Vadym, but the documentation that I saw strongly advises not
B> to use
B> the API's. Is there another mechanism?

I've mentioned another way. You can call Assembly.Load(). If load failed, then
assembly being loaded is not in the GAC.

BTW, how do you put assemblies into the GAC?


--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top