473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

DLL check in Bin folder

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
1 1621
> 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.

"John" <a@b.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... 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 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Fickbohm | last post by:
People, I am trying to determine the creation date of files in a folder. I am using the following code to find the folder and confirm that files exist in the folder. If someone could give me an...
2
by: David | last post by:
I'm using following code for checking a file existence. I's working fine for given folder. Is there a way to check a file exitance in subfolders? Thanks in advance, David Option Compare...
5
by: Dale Ring | last post by:
Access 2000 I need to check a particular folder for files of a particular type (such as *.txt) Prior to the next step. If Files of said type are present, then the code will continue, else it...
6
by: Johannes Hammersen | last post by:
Hi everyone, this got to be simple, but I can't figure it out: How can I check if I have write permisson on a folder? Thanks Johannes
0
by: Dilip | last post by:
hi all , i m trying to make such a tree view which specify some folder structure for installation i mean there is some folders mandatory. This is installation software. is based upon user...
5
by: mabond | last post by:
Hi Can't believe I've not been able to find the answer to this in the on-line help. I have a CheckedListBox which, via a timer control, is populated with the names of files in a network...
6
by: Fred W. | last post by:
When my application starts I need to check folder permissions to ensure they have "Full Control" before I let them proceed on. How can I check this permission. Thank you, Fred
1
by: =?Utf-8?B?R2FuZXNoIE11dGh1dmVsdQ==?= | last post by:
Hello All, Our application write logs to a file in a folder. Before our application starts writing to that file, I want to check if the current user has write access to that file, for example,...
10
by: Dieter Pelz | last post by:
Hallo, what is the best way to check the installation of mfc80 and vcrt sidebyside assemblies? Best Regards, Dieter Pelz
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.