DLL check in Bin folder

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all,

How do I programmatically check for the existence of a DLL in the BIN folder
prior to using it?

I don't want to hard-code the path (i.e.
"C:\InetPub\wwwroot\mysite\bin\MyDLL.dll").

I was simply thinking about programmatically attempting to create an
instance of the DLL and handle the error if it didn;t exist but was thinking
if there is some better method.

Regards
John.
 
How do I programmatically check for the existence of a DLL in the BIN
folder prior to using it?

If your app doesn't run, it's a good bet it's not there.

Here's my point: A DLL is an essential part of a web application. It isn't
one of those things that the web app can live with or without. If the DLL
isn't there, you have a major problem on your hands. You might just as well
ask, how do I programmmatically check if my System32 folder is there prior
to using any DLLs in it? Just make sure you deploy it!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
Back
Top