Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Reference dll from a folder other than bin

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
D2 - 13 Jun 2007 07:25 GMT
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
Kevin Spencer - 13 Jun 2007 11:39 GMT
You're not forced to use the GAC, but that would be the best plan, under the
circumstances.

Signature

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

> Hi,
>
[quoted text clipped - 23 lines]
> regards,
> Deepesh
D2 - 13 Jun 2007 13:28 GMT
Hi Kevin,

thanks for your reply.

Do I have a choice than using GAC?

-
D2

> You're not forced to use the GAC, but that would be the best plan, under the
> circumstances.
[quoted text clipped - 36 lines]
> > regards,
> > Deepesh
bruce barker - 13 Jun 2007 16:57 GMT
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)

> Hi Kevin,
>
[quoted text clipped - 37 lines]
>>> regards,
>>> Deepesh

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.