Results 1 to 16 of 16

Thread: (IIS & Win2k Server) How do I make directory work with global.asa? **Resolved**

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (IIS & Win2k Server) How do I make directory work with global.asa? **Resolved**

    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
    Last edited by msimmons; Jun 21st, 2002 at 08:26 AM.
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Each site and/or Virutal Directory can use its own global.asa which is in the root of the site/vd.

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    does your virtual directory settings have Execute checked?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  8. #8
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    oops..didnt mean check box. Should be a set of radio buttons.

    Execute(including scripts) - should be selected.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  9. #9

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    on the home directory tab? I didnt see it anywhere (on any tab).
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  10. #10
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  11. #11

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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)
    VB Code:
    1. [b]Inetpub[/b]
    2.  
    3. ..[b]site1[/b]
    4. .. ..global.asa
    5.  
    6. ..[b]site2[/b]
    7. .. ..global.asa
    8.  
    9. ..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
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  12. #12
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  13. #13

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  14. #14
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.
    Attached Images Attached Images  
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  15. #15
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You figured it out while I was making the nice picture!
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  16. #16

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Yeah, I was doing it right the whole time... just in the wrong place
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width