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? 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?
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?
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?
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?
> 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?
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? >
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? >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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?
|
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
|
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
|
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
|
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:
| |
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...
|
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...
|
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,...
|
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...
|
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();...
|
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...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |