Locating DLLs outside of bin

  • Thread starter Thread starter james
  • Start date Start date
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
 
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
 
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)
 
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
 
Back
Top