473,386 Members | 1,741 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,386 software developers and data experts.

Where to put .NET shared DLL's

I have created a couple of DLL's in .NET that I want to use in a couple of
my web projects, that will be running on the same web server. Instead of
thn using the'bin' directory, what is the recommended approach for putting
the DLL's on the web server and having them properly registered so that the
applications recognize the assembly and namespace?
Nov 18 '05 #1
7 1899
look at the "GAC"

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Random" <ci*******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
I have created a couple of DLL's in .NET that I want to use in a couple of
my web projects, that will be running on the same web server. Instead of
thn using the'bin' directory, what is the recommended approach for putting
the DLL's on the web server and having them properly registered so that the
applications recognize the assembly and namespace?

Nov 18 '05 #2
the bin directory is the .net way. its only a little disk space, and it
makes it easy to change or update the dll and control the impact on the web
sites.

-- bruce (sqlwork.com)
"Random" <ci*******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
I have created a couple of DLL's in .NET that I want to use in a couple of
my web projects, that will be running on the same web server. Instead of
thn using the'bin' directory, what is the recommended approach for putting
the DLL's on the web server and having them properly registered so that the applications recognize the assembly and namespace?

Nov 18 '05 #3
The recommended approach is to put them into the bin directory. You could
also register them inthe Global Assembly Cache, but that can be problematic,
esp. if you plan to update them now and then.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Random" <ci*******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
I have created a couple of DLL's in .NET that I want to use in a couple of
my web projects, that will be running on the same web server. Instead of
thn using the'bin' directory, what is the recommended approach for putting
the DLL's on the web server and having them properly registered so that the applications recognize the assembly and namespace?

Nov 18 '05 #4
Okay, 1) bin directory; or 2) Global Assembly Cache.

1) Well, I've got two web projects. They do not run off of virtual
directories. Which bin directory should I put them in? Won't there be
conflict if I duplicate them?

2) I've looked at this, per Curt's recommendation. Looks easy enough, I've
added them to the cache with no problem. So now I just try to use the <%
Register Assembly="My.Assembly" %> tag? Why don't other projects I've
downloaded and installed seem to have their assemblies listed in the cache,
and the project works?
"Random" <ci*******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
I have created a couple of DLL's in .NET that I want to use in a couple of
my web projects, that will be running on the same web server. Instead of
thn using the'bin' directory, what is the recommended approach for putting
the DLL's on the web server and having them properly registered so that the
applications recognize the assembly and namespace?

Nov 18 '05 #5
> 1) Well, I've got two web projects. They do not run off of virtual
directories. Which bin directory should I put them in? Won't there be
conflict if I duplicate them?
Forget about virtual directories. Virtual Directories have nothing to do
with running ASP.Net. Applications do. The /bin folder should reside
directly under the Application root directory. that would be the directory
in IIS that is configured as an Application. You could not run an ASP.Net
app without one. And if you have 2 separate ASP.Net apps on the same server,
they reside in 2 different Application roots. Otherwise, you just have more
than one directory UNDER the Application root. An IIS Application is defined
as the Application root and all folders under the Application root that are
not Application roots themselves.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Random" <ci*******@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP15.phx.gbl... Okay, 1) bin directory; or 2) Global Assembly Cache.

1) Well, I've got two web projects. They do not run off of virtual
directories. Which bin directory should I put them in? Won't there be
conflict if I duplicate them?

2) I've looked at this, per Curt's recommendation. Looks easy enough, I've added them to the cache with no problem. So now I just try to use the <%
Register Assembly="My.Assembly" %> tag? Why don't other projects I've
downloaded and installed seem to have their assemblies listed in the cache, and the project works?
"Random" <ci*******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
I have created a couple of DLL's in .NET that I want to use in a couple ofmy web projects, that will be running on the same web server. Instead of
thn using the'bin' directory, what is the recommended approach for puttingthe DLL's on the web server and having them properly registered so that theapplications recognize the assembly and namespace?


Nov 18 '05 #6
I understood that. I only meant to try to clarify that these applications
are not a subdirectory of another web application...

(i.e. http://www.rootapp.com/appA/, http://www.rootapp.com/appB/)

....so that someone would not advise me to put the dll's in the bin directory
for the root application (http://www.rootapp/com/bin/)
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uv**************@tk2msftngp13.phx.gbl...
1) Well, I've got two web projects. They do not run off of virtual
directories. Which bin directory should I put them in? Won't there be
conflict if I duplicate them?


Forget about virtual directories. Virtual Directories have nothing to do
with running ASP.Net. Applications do. The /bin folder should reside
directly under the Application root directory. that would be the directory
in IIS that is configured as an Application. You could not run an ASP.Net
app without one. And if you have 2 separate ASP.Net apps on the same
server,
they reside in 2 different Application roots. Otherwise, you just have
more
than one directory UNDER the Application root. An IIS Application is
defined
as the Application root and all folders under the Application root that
are
not Application roots themselves.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Random" <ci*******@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP15.phx.gbl...
Okay, 1) bin directory; or 2) Global Assembly Cache.

1) Well, I've got two web projects. They do not run off of virtual
directories. Which bin directory should I put them in? Won't there be
conflict if I duplicate them?

2) I've looked at this, per Curt's recommendation. Looks easy enough,

I've
added them to the cache with no problem. So now I just try to use the <%
Register Assembly="My.Assembly" %> tag? Why don't other projects I've
downloaded and installed seem to have their assemblies listed in the

cache,
and the project works?
"Random" <ci*******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
>I have created a couple of DLL's in .NET that I want to use in a couple of >my web projects, that will be running on the same web server. Instead
>of
>thn using the'bin' directory, what is the recommended approach for putting >the DLL's on the web server and having them properly registered so that the >applications recognize the assembly and namespace?
>



Nov 18 '05 #7
Well, you did ask where you should put them. And there will not be a
conflict if you do.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Random" <ci*******@hotmail.com> wrote in message
news:ef**************@TK2MSFTNGP12.phx.gbl...
I understood that. I only meant to try to clarify that these applications
are not a subdirectory of another web application...

(i.e. http://www.rootapp.com/appA/, http://www.rootapp.com/appB/)

...so that someone would not advise me to put the dll's in the bin directory for the root application (http://www.rootapp/com/bin/)
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uv**************@tk2msftngp13.phx.gbl...
1) Well, I've got two web projects. They do not run off of virtual
directories. Which bin directory should I put them in? Won't there be
conflict if I duplicate them?


Forget about virtual directories. Virtual Directories have nothing to do
with running ASP.Net. Applications do. The /bin folder should reside
directly under the Application root directory. that would be the directory in IIS that is configured as an Application. You could not run an ASP.Net app without one. And if you have 2 separate ASP.Net apps on the same
server,
they reside in 2 different Application roots. Otherwise, you just have
more
than one directory UNDER the Application root. An IIS Application is
defined
as the Application root and all folders under the Application root that
are
not Application roots themselves.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Random" <ci*******@hotmail.com> wrote in message
news:ep**************@TK2MSFTNGP15.phx.gbl...
Okay, 1) bin directory; or 2) Global Assembly Cache.

1) Well, I've got two web projects. They do not run off of virtual
directories. Which bin directory should I put them in? Won't there be
conflict if I duplicate them?

2) I've looked at this, per Curt's recommendation. Looks easy enough,

I've
added them to the cache with no problem. So now I just try to use the <% Register Assembly="My.Assembly" %> tag? Why don't other projects I've
downloaded and installed seem to have their assemblies listed in the

cache,
and the project works?
"Random" <ci*******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
>I have created a couple of DLL's in .NET that I want to use in a
couple of
>my web projects, that will be running on the same web server. Instead
>of
>thn using the'bin' directory, what is the recommended approach for

putting
>the DLL's on the web server and having them properly registered so
that the
>applications recognize the assembly and namespace?
>



Nov 18 '05 #8

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

Similar topics

2
by: tshad | last post by:
I have a program I am trying to compile into a dll and am getting a bunch of: the following errors: error BC30469: Reference to a non-shared member requires an object reference. At first, I...
1
by: David Sanschagrin | last post by:
(I previously posted this problem on vb.general.discussion but I've been told that this question is more related to VB.NET than VB6 and so that I should post that here.) I'm trying to call a...
8
by: Al | last post by:
I'd like to create Class Library in VB 2005, which has a property accessible by external programs. I decided to include 1 Class with 1 property in this project. I placed this code in Class:...
8
by: Al | last post by:
I'd like to create Class Library in VB 2005, which has a property accessible by external programs. I decided to include 1 Class with 1 property in this project. I placed this code in Class:...
10
by: tshad | last post by:
I have a Dll I created in VS 2000. The namespace is MyFunctions and the Class is CryptoUtil. I have a program that is using the Class but it can't access it directly. I have a class (below)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
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...

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.