473,772 Members | 2,402 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Locating DLLs outside of bin

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><assem blingbinding xmls="urn:schem as-microsoft-
com:asm.v1"><pr obing 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

Apr 5 '07 #1
3 1965
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

JWould anyone mind explaining how I can use .dlls outisde of /bin?
JReally I want to use dll's that are located in "../", but I haven't
Jbeen able to get .Net to look outside of my base directory. I tried
Jthis in web.config:
J>
J<configuration ><runtime><asse mblingbinding
Jxmls="urn:sche mas-microsoft- com:asm.v1"><pr obing
Jprivatepath=". ./">...
J>
JIf there is no way to look outside my base directory, is there a was
Jto look for dll's in the base directory (instead of bin)?
J>
JThanks for any help,
JJames
Apr 5 '07 #2
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)
james wrote:
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><assem blingbinding xmls="urn:schem as-microsoft-
com:asm.v1"><pr obing 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
Apr 5 '07 #3
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

Apr 5 '07 #4

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

Similar topics

6
7751
by: Jon | last post by:
I have 3 VB.net executables that reference the same 3 VB.Net DLLs. How is the best way to distribute the EXEs without putting 3 copies of of DLL on a user's machine. I looked into Private assemblies and the Global Assembly but I am having a hard time figuring them out. Ideally, I would like to have one install that puts all 3 EXEs and all 3 DLLs on the workstation. Any recommendations would be appreciated. Jonathan
0
990
by: Dave Jackson | last post by:
Hi all, I'm attempting to create a console app similar to Microsoft's MMC that will allow us to create a single user interface, and any apps we create will be accessible as snap-in dlls. I've been able to create the user interface, and some sample dlls as apps and everything seems to work fine as long as I reference the dlls directly. However, I'd like to have the list of application be generated when the user interface loads, so I'm...
7
3110
by: Oenone | last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far. I have an ASP.NET application that relies on several DLLs to work. Currently in order to get my site working I have to put them all in the bin/ folder within my web site's directory. As I have numerous web sites, I want to be able to place all of these DLLs just once into a single location elsewhere on the disk (e.g., "D:\DLLs"). I don't want to put them into the...
9
1170
by: tshad | last post by:
I have my Classes that I have built in asp.net and the Dlls go into the bin folder I need to write a service that will run on the Web service and will access Sql Server to find clients that have met certain criteria and will send emails to them. I already have these functions written in my classes in my Dlls. As a matter of fact, most of the code in the service will be the same as the asp.net code - without the user interface. Do I...
6
2205
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing. If someone could tell me what I'm missing that would be great. 1. Create an external class and call it Test.dll. 2. Create a test Asp.net app called App.sln. 3. For App.sln I set a reference to Test.dll. 4. Compile App.sln and run it. The web...
1
1688
by: Shiraz | last post by:
Hi It seems like none of the old posts get any follow up after a few messages, whether or not something constructive comes out of them, so I'm left with no choice but to repost an earlier question I asked. Below I've copy-pasted the log of the last post. It's an interesting problem, and it might well be worth reading if you are willing to be patient. As always, I would appreciate your comments immensely
6
4597
by: =?Utf-8?B?RmFiaWFu?= | last post by:
Hello, I have a class hierarchy distributed over 3 native C++ dlls. The base class has a .NET Windows.Form for status output via a gcroot<>. The gcroot is declared private - the sub classes only have access via a protected "print"-method. I need the different dlls as the sub classes implement the base class's pure virtual methods using different technologies. To use the native classes from outside their dlls I use the...
4
2277
by: Ty | last post by:
Hi all Short version of my problem: i have a Datagrid (Flexgrid from ComponentOne) with a Datatable as source. I need to search a row in the datatable, using a primary key column in the datatable, and then figure out wich row this currently is in the Datagrid. This should probably be done using the currency manager for speed reasons. For the live of me, i can't figure out how to locate the row very fast
6
2431
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
Using Visual Studio 2005, I have created 4 small DLLs that our company projects can use to access common tools included in each of the separate DLL files. Our Visual Studio 2005 applications call the DLLs and run them without any problem. Now we are trying to deploy the first of these applications, and we are now stumped. The Visual Studio 2005 Deployment Project includes all of the DLL files and successfully creates the setup.exe...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9911
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.