473,657 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reference dll from a folder other than bin

D2
Hi,

I am working on an application which have web as well as windows
portions. We have some common dlls that are shared by both windows and
web. To make it more maintainable, we want to place the common dlls in
one folder from where both win/web can reference.

I have noticed that any reference to web projects automatically copies
the dlls in the bin folder and we don;t have an option to say "do not
copy". What are the options to accomplish this (referencing dlls from
a folder other than bin) in asp.net?

scenario is like this:

1) all windows binaries are located in:
c:\program files\my app\bins\

2) all common dlls are located in
c:\program files\my app\bins\common

3) web virtual folder is located at:
c:\inetpub\mywe b

To accomplish this, am i forced to use GAC?

regards,
Deepesh

Jun 13 '07 #1
3 2344
You're not forced to use the GAC, but that would be the best plan, under the
circumstances.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"D2" <dh*****@yahoo. comwrote in message
news:11******** *************@j 4g2000prf.googl egroups.com...
Hi,

I am working on an application which have web as well as windows
portions. We have some common dlls that are shared by both windows and
web. To make it more maintainable, we want to place the common dlls in
one folder from where both win/web can reference.

I have noticed that any reference to web projects automatically copies
the dlls in the bin folder and we don;t have an option to say "do not
copy". What are the options to accomplish this (referencing dlls from
a folder other than bin) in asp.net?

scenario is like this:

1) all windows binaries are located in:
c:\program files\my app\bins\

2) all common dlls are located in
c:\program files\my app\bins\common

3) web virtual folder is located at:
c:\inetpub\mywe b

To accomplish this, am i forced to use GAC?

regards,
Deepesh

Jun 13 '07 #2
D2
Hi Kevin,

thanks for your reply.

Do I have a choice than using GAC?

-
D2

On Jun 13, 3:39 pm, "Kevin Spencer" <unclechut...@n othinks.comwrot e:
You're not forced to use the GAC, but that would be the best plan, under the
circumstances.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:http://www.miradyne.net

"D2" <dhap...@yahoo. comwrote in message

news:11******** *************@j 4g2000prf.googl egroups.com...
Hi,
I am working on an application which have web as well as windows
portions. We have some common dlls that are shared by both windows and
web. To make it more maintainable, we want to place the common dlls in
one folder from where both win/web can reference.
I have noticed that any reference to web projects automatically copies
the dlls in the bin folder and we don;t have an option to say "do not
copy". What are the options to accomplish this (referencing dlls from
a folder other than bin) in asp.net?
scenario is like this:
1) all windows binaries are located in:
c:\program files\my app\bins\
2) all common dlls are located in
c:\program files\my app\bins\common
3) web virtual folder is located at:
c:\inetpub\mywe b
To accomplish this, am i forced to use GAC?
regards,
Deepesh

Jun 13 '07 #3
not really. the Load assembly only looks in the bin or the framework
installation bin folder. at startup asp.net copies the files from the
bin folder to its temp work folder.

the best is what you are doing, let msbuild copy the dll on compile.

-- bruce (sqlwork.com)
D2 wrote:
Hi Kevin,

thanks for your reply.

Do I have a choice than using GAC?

-
D2

On Jun 13, 3:39 pm, "Kevin Spencer" <unclechut...@n othinks.comwrot e:
>You're not forced to use the GAC, but that would be the best plan, under the
circumstance s.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:http://www.miradyne.net

"D2" <dhap...@yahoo. comwrote in message

news:11******* **************@ j4g2000prf.goog legroups.com...
>>Hi,
I am working on an application which have web as well as windows
portions. We have some common dlls that are shared by both windows and
web. To make it more maintainable, we want to place the common dlls in
one folder from where both win/web can reference.
I have noticed that any reference to web projects automatically copies
the dlls in the bin folder and we don;t have an option to say "do not
copy". What are the options to accomplish this (referencing dlls from
a folder other than bin) in asp.net?
scenario is like this:
1) all windows binaries are located in:
c:\program files\my app\bins\
2) all common dlls are located in
c:\program files\my app\bins\common
3) web virtual folder is located at:
c:\inetpub\my web
To accomplish this, am i forced to use GAC?
regards,
Deepesh

Jun 13 '07 #4

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

Similar topics

7
3187
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb -- UC/ ----- Classic/
2
1543
by: Kulgan | last post by:
Hi All We have developed an ASP.NET 1.1 app that uses an external web service. Which of the files relating to the web reference need to be deployed in production? The web service Url Behaviour is configured to be dynamic rather than static if that makes a difference. In the folder for the reference, we currently have: 1) Reference.map 2) Reference.vb
11
1915
by: Just Me | last post by:
I have a solution containing many usercontrol projects. When I wish to reference a usercontrol in another project I can select either the project or the assembly. Does it make a difference which one I select? Thanks
0
925
by: Baseman | last post by:
I have a master where I had two other projects referenced. I tried to add another reference to a third project using Project... Add Reference... Projects Tab... then I navigated to the third project's dll in it's own bin/Debug folder. It now shows up in the solution explorer under my main solution's "References" folder. When I build the solution, I'm getting "The type or namespace name "MyReferencedProject" could not be found (are you...
0
1476
by: stic | last post by:
Hi, After a few hours of asp. net configuration, ACL, web service specifications digging and of course extensive googling, I finally came to you… and as usually I need help… I need to add specific dll files as reference to my WS. At this project for some reason we use ‘copy local = false’. And that is what makes a lot of problems with WS references.
1
1632
by: Brian P | last post by:
I have a class, Folder, that I want to hold a reference to its parent Folder as well as its subfolders. I'm using List<Folder> to hold its list of sub folders. What I want to do is when a folder is added to this list, automatically set the parent reference. But this seems impossible. It seems like I need to keep List<Folder> private and expose an "AddFolder" method that adds the folder to the list, and then also sets the folder's...
3
4395
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here really understand how this could be an issue. The assemblies that the system is complaining about are ones that we build here and we're not changing version numbers on anything. The errors come and go with no apparent rhyme or reason. We do not...
5
9129
by: Richard J Foster | last post by:
Hi there, I have a pair of C# projects in VS2003. The first project, a dll, is referenced in the second via a project reference. The assemblies in question are delay-signed during a "production" build process, but not as part of a normal development build. I have noticed that while the correctly signed assembly is present in the designated output folder for the project (e.g. bin/Release), an
11
4485
by: =?Utf-8?B?UGFycm90?= | last post by:
I get an error when trying to add a reference to a DLL program from a Realia COBOL program that is 32 bit. The error message says "Please make sure the file is accessible and that it is a valid assembly or COM component. I can access this file using C++ but not C#. My COBOL DLL program passes data by reference. My coding is shown below: public static extern void TRANPROG(string parms); private void OnSubmit(object sender,...
0
8306
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
8825
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...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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
8605
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
5632
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
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
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
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.