Click to See Complete Forum and Search --> : (IIS & Win2k Server) How do I make directory work with global.asa? **Resolved**
msimmons
Jun 19th, 2002, 03:53 PM
How do I make directory work with global.asa? I have a global.asa in the inetpub and one that is in a directory one level down. I don't car about the first one but want to use the 2nd one.... stuck here. I don't know what IIS vers it is but it is Win2k Server.
Thanks
Michael
Edneeis
Jun 19th, 2002, 05:23 PM
Each site and/or Virutal Directory can use its own global.asa which is in the root of the site/vd.
msimmons
Jun 20th, 2002, 08:44 AM
As far as I know (i'm new to IIS) it is set as its own site. I have a session variable that I am setting in both the inetpub's root and in the directory in question's root and it is getting the value of the one in the inetpub root.
Michael
JoshT
Jun 20th, 2002, 10:31 AM
Use ISM to create "Web Applications" (see the bottom part of the Directory/Home Directory tab) - each Application can have a global.asa in its root folder - hence the ASP Application object.
msimmons
Jun 20th, 2002, 11:37 AM
Thats exactly what I have done and it still isnt working. I even "removed" the app name and re added it and its still using the wrong global.asa
Michael
Cander
Jun 20th, 2002, 11:58 AM
does your virtual directory settings have Execute checked?
msimmons
Jun 20th, 2002, 01:11 PM
I dont see a checkbox for Execute but there is a dropdown w/execute permissions... I tried all the settings but no change in asa.
Michael
Cander
Jun 20th, 2002, 01:25 PM
oops..didnt mean check box. Should be a set of radio buttons.
Execute(including scripts) - should be selected.
msimmons
Jun 20th, 2002, 01:31 PM
on the home directory tab? I didnt see it anywhere (on any tab).
Michael
Cander
Jun 20th, 2002, 01:53 PM
ohhh.you know what..I just reread your post and realised I misread...You cant do that. global.asa only runs in the applications root.
msimmons
Jun 20th, 2002, 02:03 PM
Like I said earlier, I'm new to IIS but I think what I am trying to do is possible. Let me know if I am wrong...
(attempt at explaining directory)
Inetpub
..site1
.. ..global.asa
..site2
.. ..global.asa
..global.asa
all the directories are set as 'sites' in the IIS, but the only global.asa that is fireing is the one in Inetpub.
Michael
Cander
Jun 20th, 2002, 02:09 PM
in inetpub? Preferrably you should put your application into a folder outside inetpup...usually directly under wwwroot is fine and then relink your Virtual directories to there. You do know what I mean by Virtual Directory do you? I dont mean a folder listed in IIS. That is not necessarily a Virtual Directory. If you dont know how to create one: Right click on 'Default Web Site'. Then choose New > Virtual Directory...follow the steps from there.
msimmons
Jun 20th, 2002, 02:18 PM
Sorry it is inetpub>wwwroot>site1.
It is working now! I had it set up as a 'site' but never realized that I should just hit the + on default website and properties on the site1 that was listed there, then create application.
Thanks!
Michael
JoshT
Jun 20th, 2002, 02:19 PM
FYI, don't set Execute permissions unless you want CGI to run in a folder - that includes *.exe files and probably anything the OS considers executable (*.bat, etc).
Anyway, see the image I've attached - to make a new application for my "images" folder, I right click it, pick properties, then click the "Create" button circled.
JoshT
Jun 20th, 2002, 02:21 PM
You figured it out while I was making the nice picture! :)
msimmons
Jun 20th, 2002, 02:29 PM
Yeah, I was doing it right the whole time... just in the wrong place :)
Michael
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.