Loading ...
Sorry, an error occurred while loading the content.

1667Running Demo ASP Problem?

Expand Messages
  • Craig Dayton
    Apr 5, 2004
    • 0 Attachment
      I'm just getting up to speed on Apache2 & Apache::ASP (2.57) and I'm still
      getting errors when attempting to run the Bookmarks demo. The /asp/eg
      examples are running correctly, so I believe that I am dealing with an app
      conf issue of some sort.

      First, this is the version of the various components that I am playing with:

      Apache/2.0.49 (Win32) mod_perl/1.99_14 Perl/v5.8.3 Server at LocalHost Port
      80

      When I browse to the URL: http://localhost/asp/demo, I get the following
      error returned.

      Errors Output
      errors compiling global.asa: Can't locate object method "dir_config" via
      package
      "Apache" at E:/Apache2/htdocs/asp/Demo//./global.asa line 15. eval 'E) ||
      die("can\'t create table $DBI::errstr"); ; } $Db->do("select * from
      bookmarks")
      || die("can\'t do select against bookmarks: $DBI::errstr"); sub
      Script_OnStart
      { $Basename = basename($0); $Title = $Name.\' / \'.$Titles{$Basename};
      $Response->Include(\'header.inc\');

      Adding either of the statements, use Apache::RequestUtil () or use
      Apache::ServerUtil ()
      To the Global.asa file didn't resolve the issue.

      Any idea on what I'm doing wrong?

      Thanks, Craig

      Global.asa

      DirectoryIndex index.asp
      <Files ~ \.asp$>
      SetHandler perl-script
      PerlHandler Apache::ASP
      PerlSetVar Global .
      PerlSetVar GlobalPackage My::Bookmarks
      PerlSetVar StateDir /tmp/asp_apps_bookmarks
      PerlSetVar Debug 2
      PerlSetVar SessionTimeout 15
      PerlSetVar StatScripts 1
      PerlSetVar AllowApplicationState 1
      PerlSetVar AllowSessionState 1
      </Files>



      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    • Show all 3 messages in this topic