Locating DLLs outside of bin

J

james

Would anyone mind explaining how I can use .dlls outisde of /bin?
Really I want to use dll's that are located in "../", but I haven't
been able to get .Net to look outside of my base directory. I tried
this in web.config:

<configuration><runtime><assemblingbinding xmls="urn:schemas-microsoft-
com:asm.v1"><probing privatepath="../">...

If there is no way to look outside my base directory, is there a was
to look for dll's in the base directory (instead of bin)?

Thanks for any help,
James
 
M

Michael Nemtsev

Hello James,

Just add reference to them via VS IDE

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

J> Would anyone mind explaining how I can use .dlls outisde of /bin?
J> Really I want to use dll's that are located in "../", but I haven't
J> been able to get .Net to look outside of my base directory. I tried
J> this in web.config:
J>
J> <configuration><runtime><assemblingbinding
J> xmls="urn:schemas-microsoft- com:asm.v1"><probing
J> privatepath="../">...
J>
J> If there is no way to look outside my base directory, is there a was
J> to look for dll's in the base directory (instead of bin)?
J>
J> Thanks for any help,
J> James
 
B

bruce barker

asp.net uses its own loader, and its rather simple. when it starts up it
copies the bin dll's to the temp folder it actually runs the site in. a
load a dll at runtime it must be in the temp folder or in the system
folder. if you add a reference to the project (or web.config) the dll's
will copied to the temp folder.

-- bruce (sqlwork.com)
 
J

james

Thanks Bruce. Do you know how I would add a reference in the
web.config? Could I specify an absolute path? Right now our
installer is copying dll's to our application's main folder, and a
second time to /bin for our website.

-James
 

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

Top