Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Tell exe where the DLL is

Status
Not open for further replies.

jerjim

Programmer
Jan 4, 2001
85
PH
I compiled several cs files (containing namespaces) into a dll file which i will call from a code-behind-file for an aspx page. In the compiler response file, i specified that the dll be created in a folder named 'bin' which is one level down from the folder in which the cs files are located.

Besides the aspx file, I coded another cs file 'Test.cs' to test my dll. The cs file is located in the folder which contains the 'bin' folder not in the 'bin' folder itself. My problem is Test.cs looks for the dll in the current folder. How do i point Test.cs to look for the dll in the 'bin' folder?

Test.cs
|
|---bin( dll )
 
You could look into Assembly.LoadFrom

That is what I use for loading a dll dynamically. Although I am not sure if this will suit your needs.

HTH Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top