Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP
Running Demo ASP Problem?
 

Index | Next | Previous | View Flat


cadayton at starband

Apr 5, 2004, 8:11 AM


Views: 1874
Permalink
Running Demo ASP Problem?

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 [at] perl
For additional commands, e-mail: asp-help [at] perl

Subject User Time
Running Demo ASP Problem? cadayton at starband Apr 5, 2004, 8:11 AM
    Re: Running Demo ASP Problem? josh at chamas Apr 5, 2004, 11:33 PM
        Re: Running Demo ASP Problem? randy at theoryx5 Apr 7, 2004, 7:45 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.