DLL check in Bin folder

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.
 
K

Kevin Spencer

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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top