Questions tagged [global.asa]

Global.asa is a file that can contain global variables and settings, accessible throughout all of the ASP scripts in an ASP application.

Global.asa is a file that can contain global variables and settings, accessible throughout all of the ASP scripts in an ASP application. The Global.asa is optional, and must be unique for the application. It can contain events, declarations, definitions and include directives. Usually, it is situated in the root of the ASP project directory.

42 questions
6
votes
1 answer

Best way to distinguish between Test and Production with Classic ASP

I have inherited a classic ASP application. There are various things that need tidying-up but I am forced to do things gradually (I can't do a wholesale change of every script). There are places in the system with hard-coded urls. Some scripts have…
Fruitbat
  • 764
  • 2
  • 5
  • 19
6
votes
4 answers

classic asp/asp.net website - global.asa not working

I've recently been given a website written in classic asp to configure and set up - although it also appears to have pages written in asp.net. The problem I'm having at the moment is that it doesn;t appear to be picking up settings from the…
thegunner
  • 6,883
  • 30
  • 94
  • 143
3
votes
3 answers

ASP classic: How to schedule a function server-side

I work just on ASP classic (I know I've to learn something new, but for now...) and that's my problem: In my database I store website's account. After a year the accounts needs to be deactivated. I've create a function that's works fine, but I need…
zeno2k
  • 193
  • 1
  • 8
2
votes
1 answer

what event(place) should i use for change culture and calendar in mulilanguage web site?

i have a multi language web site... i made two folders in visual studio for languages(en + my language)and made my web site for each one! for one language web site i had a class for changing culture and calendar to my culture and callled that class…
SilverLight
  • 19,668
  • 65
  • 192
  • 300
2
votes
1 answer

Classis ASP debugging global.asa in VS2005

I was trying to set a breakpoint in global.asa in an old classic ASP project with IIS 6 in Visual Studio 2005. Somehow the context menu for actually setting the breakpoint somewhere in global.asa is disabled (greyed). How can I set a breakpoint…
2
votes
2 answers

Classic ASP Server.MapPath() doesn't work as expected in global.asa

In Classic ASP, Server.MapPath() doesn't always work properly in the Application_OnStart event within global.asa. I have an ASP page at "\testfolder\test.asp" within a virtual root, I have an XSLT file at "\xsl\transform.xsl". My virtual root is…
andynormancx
  • 13,421
  • 6
  • 36
  • 52
2
votes
2 answers

Classic ASP global.asa SQL Server 2008 connection string

I have been given a web application written in Classic ASP to port from Windows 2003 Server (SQL Server 2000 and IIS 6) to Windows 2008 Server (SQL Server 2008 and IIS 7.5). The site uses a GLOBAL.ASA file to define global variables, one of which…
Rory Forde
  • 21
  • 1
  • 2
2
votes
4 answers

how to extend the session timeout in asp.net before expiry

I am developing movie ticket booking website. I am using sessions in that i want to extend the session timeout now am using 20mins as session timeout but when the user follows through the payment gateway or when he is in payment gateway page. the…
Tajkumar
  • 317
  • 2
  • 5
  • 16
2
votes
3 answers

global.asax and classic ASP?

Now please excuse me if this is a stupid question - BUT... In my ASP.NET apps, I have a global.asax file that catches an error and emails me the details. 'Could' I put the global.asax in the root of a classic ASP file and if there was an ASP error…
YodasMyDad
  • 9,248
  • 24
  • 76
  • 121
1
vote
2 answers

Using global.asa on Windows 2008

We have an old asp solution with VB6 components, which we are trying to install on Windows 2008. There is a connection string that is assigned to a varibale in the global.asa. When we try to use this the variable is not set. It appears that the…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
1
vote
1 answer

Classic ASP defining and using a global object via global.asa

I am trying to refactor a classic asp code base. For the most part it is going well. It had lots of code duplication for different language versions of the site, so for 6 languages the site was replicated 5 times. I have used json language files and…
1
vote
2 answers

classic asp error in global.asa: Object required: 'Session'

Server side VB asp code on a Windows 2003 machine, asp.net 2.0* installed. We're having a weird issue where the first time a user connects to the web site, the Session_OnStart in the Global.asa fires, but the session object is null. Something simple…
MonkeyWrench
  • 1,809
  • 2
  • 24
  • 48
1
vote
0 answers

Cannot Display active visitors in index.asp

My question has to do with grabbing all the active users on my site. Below are the specs: IIS Version: IIS 8.5 Server: Windows Server 2012 R2 Root folder: D:\Sites\Default\WWWRoot Site Directory: D:\Sites\Default\WWWRoot\Website Website is the…
jrp1982
  • 113
  • 2
  • 7
1
vote
1 answer

Set up a variable in web.config or global.asa to point to a server environment variable

I'm a system administrator and I'd like to have only one place to change/check for a NAS path in all web.config or global.asa files, in this way, any time the path change, I do not have to go into all web.config or global.asa files make the…
1
vote
1 answer

Redirect all requests on clasic asp global.asa file?

I tried to do a permanent redirect in the Global.asa file in my Classic ASP application by adding this code: Sub Session_OnStart queryString= Request.ServerVariables("QUERY_STRING") url = "http://www.newdomain.com" &…
Iosif Petre
  • 188
  • 3
  • 8
1
2 3