473,395 Members | 1,653 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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\myweb

To accomplish this, am i forced to use GAC?

regards,
Deepesh

Jun 13 '07 #1
3 2329
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*********************@j4g2000prf.googlegrou ps.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\myweb

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...@nothinks.comwrote:
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*********************@j4g2000prf.googlegrou ps.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\myweb
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...@nothinks.comwrote:
>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*********************@j4g2000prf.googlegro ups.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\myweb
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
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 --...
2
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...
11
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...
0
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...
0
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...
1
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...
3
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...
5
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...
11
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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...

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.