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

Home Posts Topics Members FAQ

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 1906
look at the "GAC"

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Random" <ci*******@hotm ail.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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*******@hotm ail.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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*******@hotm ail.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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.As sembly" %> 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*******@hotm ail.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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*******@hotm ail.com> wrote in message
news:ep******** ******@TK2MSFTN GP15.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.As sembly" %> 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*******@hotm ail.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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******@takem pis.com> wrote in message
news:uv******** ******@tk2msftn gp13.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*******@hotm ail.com> wrote in message
news:ep******** ******@TK2MSFTN GP15.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.As sembly" %> 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*******@hotm ail.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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*******@hotm ail.com> wrote in message
news:ef******** ******@TK2MSFTN GP12.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******@takem pis.com> wrote in message
news:uv******** ******@tk2msftn gp13.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*******@hotm ail.com> wrote in message
news:ep******** ******@TK2MSFTN GP15.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.As sembly" %> 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*******@hotm ail.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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
2953
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 thought it was because I had the sub set as shared, but I get the same error if it take the Shared out. What is causing these errors?
1
6780
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 "Public Shared" function in a dll built in VB.NET from a VB6 program. Whenever I try, I get an error saying that the function doesnt exist. I had doubts that the "Shared" in the VB.NET dll could be the problem. I tried to
8
2017
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: Public Class COM Private mMyProp As String Public Property MyProp() As String
8
8973
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: Public Class COM Private mMyProp As String Public Property MyProp() As String
10
2106
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) called CryptoUtil. The functions are Shared functions. I have this Dll in the bin folder of my program. If I don't reference it - it can't seem to find it. If I have:
0
8403
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8737
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
8509
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,...
1
6174
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
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
4168
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
2735
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
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1730
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.