364,032 Members | 4592 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

DLL check in Bin folder

John
P: n/a
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.


Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


Kevin Spencer
P: n/a
Kevin Spencer
> How do I programmatically check for the existence of a DLL in the BIN[color=blue]
> folder prior to using it?[/color]

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.

"John" <a@b.com> wrote in message
news:%23ONU4AgDFHA.3120@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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.
>[/color]


Nov 19 '05 #2

Post your reply

Help answer this question



Didn't find the answer to your ASP.NET question?

You can also browse similar questions: ASP.NET