Hi:
I have two web sites in my IIS. I want them to share or use one set of
classes that I created, because they have same functions that the classses
provide. And maybe in the future I will create more web sites to use the set
of classes. But I don't know how to do this. Where do I need to put the set
of classes? Do I have to make them be DLLs?
Thanks
Q. 4 1615
If you want to share the physical assemblies as opposed to sharing the
data that they contain you could simply install them into the GAC. This
way you'd only have to deploy the assemblies once and reference them
from each project. Hope that helps.
Have A Better One!
John M Deal, MCP
Necessity Software
Quentin Huo wrote: Hi:
I have two web sites in my IIS. I want them to share or use one set of classes that I created, because they have same functions that the classses provide. And maybe in the future I will create more web sites to use the set of classes. But I don't know how to do this. Where do I need to put the set of classes? Do I have to make them be DLLs?
Thanks
Q.
Hi,
Thank you very much!
I am a novice on .net. Can you tell me what the GAC is? And if possible, can
you introduce me some websites or materials that talking about how to do it?
Thanks
Q.
"John M Deal" <jo******@neces sitysoftware.co m> wrote in message
news:eW******** ******@TK2MSFTN GP15.phx.gbl... If you want to share the physical assemblies as opposed to sharing the data that they contain you could simply install them into the GAC. This way you'd only have to deploy the assemblies once and reference them from each project. Hope that helps.
Have A Better One!
John M Deal, MCP Necessity Software
Quentin Huo wrote: Hi:
I have two web sites in my IIS. I want them to share or use one set of classes that I created, because they have same functions that the classses provide. And maybe in the future I will create more web sites to use the set of classes. But I don't know how to do this. Where do I need to put the set of classes? Do I have to make them be DLLs?
Thanks
Q.
The GAC is the Global Assembly Cache. It's primary purpose is to provide
a shared location where assemblies can be stored for reference by
multiple applications. For example the assemblies that contain the core
classes of .Net (like System, System.Data, ...) are stored there. I
don't know of any "good" references but Microsoft has a number of decent
articles that can point you in the right direction and there are plenty
of articles online for this. The two things I'd recommend searching for
are "Global Assembly Cache" and "Strong Name" (the latter is necessary
for the former).
Here's a couple of links you can get started with: http://support.microsoft.com/kb/815808 http://www.microsoft.com/resources/d...emblycache.asp http://msdn.microsoft.com/library/de...emblycache.asp
Have A Better One!
John M Deal, MCP
Necessity Software
Quentin Huo wrote: Hi,
Thank you very much!
I am a novice on .net. Can you tell me what the GAC is? And if possible, can you introduce me some websites or materials that talking about how to do it?
Thanks
Q.
"John M Deal" <jo******@neces sitysoftware.co m> wrote in message news:eW******** ******@TK2MSFTN GP15.phx.gbl...
If you want to share the physical assemblies as opposed to sharing the data that they contain you could simply install them into the GAC. This way you'd only have to deploy the assemblies once and reference them from each project. Hope that helps.
Have A Better One!
John M Deal, MCP Necessity Software
Quentin Huo wrote:
Hi:
I have two web sites in my IIS. I want them to share or use one set of classes that I created, because they have same functions that the classses provide. And maybe in the future I will create more web sites to use the set of classes. But I don't know how to do this. Where do I need to put the set of classes? Do I have to make them be DLLs?
Thanks
Q.
the best way is build dll(s), and add a reference to them in the second
project. VS will then copy them to the local bin. avoid installing them in
the GAC as this is not the best practice (as it make support/updates more
difficult, and leads back to dll hell). you can also make a seperate project
out of the dll and share the project between web apps (this is source code
sharing).
-- brice (sqlwork.com)
"Quentin Huo" <q.***@manyworl ds.com> wrote in message
news:u3******** ******@TK2MSFTN GP12.phx.gbl...
| Hi:
|
| I have two web sites in my IIS. I want them to share or use one set of
| classes that I created, because they have same functions that the
classses
| provide. And maybe in the future I will create more web sites to use the
set
| of classes. But I don't know how to do this. Where do I need to put the
set
| of classes? Do I have to make them be DLLs?
|
| Thanks
|
| Q.
|
| This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Powell |
last post by:
Where can I find an online PHP form validator script library to use? I
have tried hacking the one here at work for weeks now and it's getting
more and more impossible to customize, especially now with form
elements that turn out to be arrays that have to be compared with one
another!
I have one form element, languages, a checkbox group. Beside each
checkbox is a dropdown, proficiency (which will become proficiency
alongside languages)....
|
by: John Bailo |
last post by:
I build an NT service using the FileSystemWatcher() class to detect when
new files arrive at our ftp server.
Now I want to configure it to watch for files on someone else's remote
server.
Questions:
1. Can I map a drive letter to an ftp share?
|
by: rkusenet |
last post by:
http://biz.yahoo.com/rc/040526/tech_database_marketshare_1.html
Interesting to see that database sales for windows is more than
Unix.
|
by: Tom |
last post by:
Hello friends
I have 2 webs sites on same domain say
http://app1.mydomain.com
http://app2.mydomain.com
App1 use custom validation, via a custom login page user
can enter their WinNT username and password and enter into
the application. It validates the username and password
|
by: Sam-I-Am |
last post by:
Hi There
I have multiple asp.net web apps that all make use of a common set of sql
data. I currently have each application cache this data using the cache api.
As the data is same for all apps, I want to save memory and "share" the
cache across all sites.
I was thinking of creating a webservice that would cache the data once and
serve it to all sites.
| |
by: musosdev |
last post by:
Hi guys
Okay, I've setup my projects to open and compile fine in VS2005 using FPSE
and remote web, but it's *really* slow. So I thought I'd have a go at doing
it the normal way, by loading from the network share.
It loads in VS2005 fine, and I can edit and save code changes etc, but when
I try and Build the solution, I get the following error...
An error occured loading a configuration file: Failed to start monitoring
|
by: Bob Peek |
last post by:
I would like to share code between several web sites that exist as virtual
directories under a single site. It appears that I have to create an
app_code directory under each virtual root in order to share classes accross
the code in the different virtual directories.
This seems to defeat the purpose of shared code.
Is there any way to specify to IIS where the app_code directory is for a
virtual site?
|
by: Immortal Nephi |
last post by:
First class is the base class. It has two data: m_Base1 and m_Base2.
Second class and third class are derived classes and they are derived
from first class. m_Base1 and m_Base2 are inherited into two derived
classes.
Second class has its own m_Base1 and m_Base2 and third class does the
same. I am curious. How can second class and third class share the
same m_Base1 and m_Base2?
You define second class first and enter data into...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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...
| |