Forum Moderators: open

Message Too Old, No Replies

global.asa problems

         

Gernwax

9:49 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



Im running windows 2000 server and i have copied an old site into the folder Site1 in the wwwroot i.e.
wwwroot/site1.
I have made a new text file called global.asa in it bit it doesnt seem to work, here's whats inside:
Sub Application_OnStart
Application("varDate") = "21"
End Sub

I have put this is the .asp file in my old site and nothing is printed:
<%
Response.Write Application("varDate")
%>

Have i done something wrong or not set something up?

duckhunter

2:06 am on Nov 10, 2004 (gmt 0)

10+ Year Member



The global.asa will fire if it resides in the root of a web application. Sounds like you need to Create the Application on the site1 folder.

IIS Manager under the Default Website folder, Right click on the site1 folder you created then click Properties. In that dialogue box the Application Settings section has a Create Button. Click that to create the 'root' of the website.