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

global.asa is not working

I put the following in the global.asa which is on the root of the web at the top of the asa file:

<!--METADATA TYPE="typelib" UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="ActiveX Data Objects 2.7 Library" -->

It's not working. I put the following in an ASP located in a folder which is an application folder but not a Virtual Directory and is an immediate child of the root of the web.

<!--METADATA TYPE="typelib" UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="ActiveX Data Objects 2.7 Library" -->

It works.

The test is:

<%
Response.Write adOpenDynamic
%>

Can someone explain what I am doing wrong here? I thought it did work at one time. Do I need to put a global.asa in this application folder? I thought there was a bubbling-up or trickle-down of the global.asa not sure what it is called. Thanks.

--
George Hester
__________________________________
Jul 19 '05 #1
3 2918
George Hester wrote:
I put the following in the global.asa which is on the root of the web
at the top of the asa file:

<!--METADATA TYPE="typelib"
UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="ActiveX Data
Objects 2.7 Library" -->

It's not working. I put the following in an ASP located in a folder
which is an application folder but not a Virtual Directory and is an
immediate child of the root of the web.

<!--METADATA TYPE="typelib"
UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="ActiveX Data
Objects 2.7 Library" -->

It works.

The test is:

<%
Response.Write adOpenDynamic
%>

Can someone explain what I am doing wrong here? I thought it did
work at one time. Do I need to put a global.asa in this application
folder? I thought there was a bubbling-up or trickle-down of the
global.asa not sure what it is called. Thanks.


Global.asa needs to be in the application's folder. There is not
trickle-down.

--
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"
Jul 19 '05 #2
Thanks Bob. You have cleared up something that has been bugging me. I thought the global.asa bubbled or trickled (not sure how it would be called in this regard - you said "trickle-down" so we'll go with that) and so I have not made any global.asa's myself in application folders. If VID did it that's OK I just assumed it was smarter then I.

So let me ask you. What is the minimum entries that need to be in a global.asa so that it works? Could I just make a global.asa in Notepad, put the META tag I showed at the top, and have a working ASP as I showed; the test? Thanks.

--
George Hester
__________________________________
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message news:#s**************@tk2msftngp13.phx.gbl...
George Hester wrote:
I put the following in the global.asa which is on the root of the web
at the top of the asa file:

<!--METADATA TYPE="typelib"
UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="ActiveX Data
Objects 2.7 Library" -->

It's not working. I put the following in an ASP located in a folder
which is an application folder but not a Virtual Directory and is an
immediate child of the root of the web.

<!--METADATA TYPE="typelib"
UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="ActiveX Data
Objects 2.7 Library" -->

It works.

The test is:

<%
Response.Write adOpenDynamic
%>

Can someone explain what I am doing wrong here? I thought it did
work at one time. Do I need to put a global.asa in this application
folder? I thought there was a bubbling-up or trickle-down of the
global.asa not sure what it is called. Thanks.


Global.asa needs to be in the application's folder. There is not
trickle-down.

--
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"

Jul 19 '05 #3
George Hester wrote:
Thanks Bob. You have cleared up something that has been bugging me.
I thought the global.asa bubbled or trickled (not sure how it would
be called in this regard - you said "trickle-down" so we'll go with
that) and so I have not made any global.asa's myself in application
folders. If VID did it that's OK I just assumed it was smarter then
I.

So let me ask you. What is the minimum entries that need to be in a
global.asa so that it works? Could I just make a global.asa in
Notepad, put the META tag I showed at the top, and have a working ASP
as I showed; the test? Thanks.


I use VID. When I want to add a reference to ADO, I just go to the
References dialog from the menu and check it off. VID automatically adds it
to the application's global.asa. One caveat, you need to be aware of the
version of ADO running on the server. If you select 2.7, and the server has
2.5 (unlikely), then the meta tag won't work.

Without VID, then I would have to resort to what you describe (same caveat).
Normally, my global.asa file contains nothing but the META tag. If you need
something to occur at session or application events, then that code would
also go into global.asa.

HTH,
Bob Barrows

--
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"
Jul 19 '05 #4

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

Similar topics

0
by: wh | last post by:
The application that I'm about to start working on requires maintaining a list of users currently accessing an asp.net application running on IIS5.0. I essentially need to monitor which xml files...
3
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a...
4
by: Hardy Wang | last post by:
Hi all, In order to solve code-behind of global.asax problem, I removed the code from global.asax, and just leave one line "<%@ Application Language="C#" Inherits="Global"%>" in this file. Then I...
13
by: Charles A. Lackman | last post by:
Hello, Is there a way to make a dataset global to all my aspx 2.0 web forms? Thanks, Chuck
24
by: onnodb | last post by:
Hi all, Currently, I'm working on an Access XP database app that uses two global objects in its code. These two objects are instances of "controller classes". For example, one of them manages...
15
by: =?Utf-8?B?UGF0Qg==?= | last post by:
Just starting to move to ASP.NET 2.0 and having trouble with the Global.asax code file. In 1.1 I could have a code behind file for the global.asax file. This allow for shared variables of the...
1
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
4
by: Joe | last post by:
Hello all! I added a Global.asax to my application. I'm using the Application_BeginRequest event. Everything works fine in my development enviorment but when I publish the web site the...
3
by: Peter Larsen [CPH] | last post by:
Hi, I have a problem where the code in Global.asax.cs runs before the unittests (on test of course). In the global file, i load some data from a Oracle table and save it in...
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
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: 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
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.