Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP Application Start global.asa

ASP Application Start global.asa

Scheduled Pinned Locked Moved Web Development
helpsysadmindebuggingxmlquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CillyMe
    wrote on last edited by
    #1

    I guess this is a simple problem for which I do not have an answer. The following is taken from "global.asa" for an ASP application. It simply calls a method that parses an XML file (LoadSiteConfig). This method is included in loadsiteconfig.vb. However, it appears that the method LoadSiteConfig is not called on application start. I'm suspecting there's some syntax error the way I included the source "loadsiteconfig.vb" using the "src" attribute: sub Application_OnStart LoadSiteConfig() end sub sub Application_OnEnd end sub Here's what "loadsiteconfig.vb" looks like: Function LoadSiteConfig() ... parses an XML file using Server.CreateObject("microsoft.XMLDOM") ... End Function Am I doing the right thing? The way I included the ".vb" file in "global.asa"?? I'm having some trouble to trace where it went wrong that the function is not called it appears. Thanks!

    R 1 Reply Last reply
    0
    • C CillyMe

      I guess this is a simple problem for which I do not have an answer. The following is taken from "global.asa" for an ASP application. It simply calls a method that parses an XML file (LoadSiteConfig). This method is included in loadsiteconfig.vb. However, it appears that the method LoadSiteConfig is not called on application start. I'm suspecting there's some syntax error the way I included the source "loadsiteconfig.vb" using the "src" attribute: sub Application_OnStart LoadSiteConfig() end sub sub Application_OnEnd end sub Here's what "loadsiteconfig.vb" looks like: Function LoadSiteConfig() ... parses an XML file using Server.CreateObject("microsoft.XMLDOM") ... End Function Am I doing the right thing? The way I included the ".vb" file in "global.asa"?? I'm having some trouble to trace where it went wrong that the function is not called it appears. Thanks!

      R Offline
      R Offline
      Roger Wright
      wrote on last edited by
      #2

      Doesn't a Function have to return a value in VBScript? I don't use them often enough to be sure, but I seem to recall that functions have to be used on the right side of an assignment operator, while Subs can be called as freestanding entities. Try changing the Function to a Sub in loadsiteconfig.vb and see if that helps. "Your village called -
      They're missing their idiot."

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups