Solved

Active Server Pages error 'ASP 0129'     Unknown scripting language

Posted on 2004-04-01
3
1,639 Views
Last Modified: 2009-01-11
hi,
i am using the follwing perl script in my asp program, i tried this on both 98 and 2000 i.e PWS and IIS, it says the following error..

Active Server Pages error 'ASP 0129'

Unknown scripting language

/demo/perl.inc, line 1

The scripting language 'PerlScript' is not found on the server.

My script is
****************************
<script language="PerlScript" runat="server">
      use LWP;

      # this function returns the text between
      # the <body></body>-tags of a document, assuming that
      # the given url returns a text document (and no image e.g.)
      # call it with GetUrlBody(url) from your scripts.
      sub GetUrlBody {
            my ($url) = @_;
            my $content = GetUrlContent($url);

            # extract between body tags.
            $content =~ m/<body.*?>(.*?)<\/body>/gsi;
            my $body = $1;
            $body = $content if not defined($body);

            return $body;
      }

      # this function returns the complete content
      # of a complete document, assuming that
      # the given url returns a text document (and no image e.g.)
      # call it with GetUrlContent(url) from your scripts.
      sub GetUrlContent {
            my ($url) = @_;

            my $browser = LWP::UserAgent->new();
            $browser->timeout(10);

            my $request = HTTP::Request->new(GET => $url);
            my $webdoc = $browser->request($request);

            chomp(my $content = $webdoc->content);

            return $content;
      }
</script>



0
Comment
Question by:str_kani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
sknight earned 50 total points
ID: 10733885
Do you have PERL running on the server?
0
 
LVL 12

Author Comment

by:str_kani
ID: 10859535
fine sknight

your have asked a valid question,

it wasn't running, sorry for this small question, but any how i accept your QUESTION as ANSWER
0
 
LVL 1

Expert Comment

by:sknight
ID: 10860945
It's always best to start looking at the most obvious problems first, those are the things that usually escape us when troubleshooting...  good luck :)
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question