473,386 Members | 1,763 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.

Share Global.asa

RN1
Can more than one application (on the same server) share the same
Global.asa file? If not, then why?

Thanks,

Ron
Dec 24 '07 #1
2 2271
RN1 wrote:
Can more than one application (on the same server) share the same
Global.asa file?
No.
http://msdn2.microsoft.com/en-us/library/ms525316.aspx
If not, then why?
Because that's the way it is <shrug>
http://msdn2.microsoft.com/en-us/library/ms525965.aspx

You should bookmark this:
http://msdn2.microsoft.com/en-us/library/ms524664.aspx

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 24 '07 #2

"RN1" <rn**@rediffmail.comwrote in message
news:7f**********************************@s8g2000p rg.googlegroups.com...
Can more than one application (on the same server) share the same
Global.asa file? If not, then why?
I've never tried it but one way that would happen is if you create two
applications to whose physical home directory is the same physical folder.
They would clearly share the Global.asa as well as whatever else is in the
folder.

Personally if I had code I wanted shared by multiple applications I would
place that code in include files in a folder, add the folder to each
application as a virtual folder then use #include virtual="..." to include
this library code in whatever asp code files needed them.

Bear in mind in neither case would the two applications share values stored
in the application object (just in case you might be thinking that.)

--
Anthony Jones - MVP ASP/ASP.NET
Dec 24 '07 #3

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

Similar topics

1
by: CES | last post by:
All, If anyone has been following my trials over the last week see(Setting up a Web Application on IIS 5.1 and ASP.Net Security Problems). I'm having a problem running a Asp.Net Web...
0
by: z. f. | last post by:
Hi, trying to use web application located on other computer to run from the local computer IIS, i have a problem from global.asax that it can't find the DLL. Line 1: <%@ Application...
2
by: bryanrite | last post by:
I have been desperately trying to get this to work. I create a C# Web App on the localhost (the only place i'm allowed to put it). Put an arbitrary button or something in, compile it, run it......
6
by: Tony Fonager | last post by:
I am currently developing a statistics system in ASP.NET, and need to share information about the customers websites, in this application. (I have simplified my code, to make my project easier to...
8
by: Tony Fonager | last post by:
I am currently developing a statistics system in ASP.NET, and need to share information about the customers websites, in this application. (I have simplified my code, to make my project easier to...
4
by: Quentin Huo | last post by:
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...
2
by: pj_servadmin | last post by:
Server Error in '/<applicationName>' Application -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of...
3
by: btysgtmajor | last post by:
Hi all, I'm running a Win2003 server w/ IIS 6. The home directory of the website is on a network share. I successfully host html pages and asp apps. However, when it comes to ASP.Net web app,...
6
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.