Solved

Active Server Pages error 'ASP 0129'     Unknown scripting language

Posted on 2004-04-01
3
1,650 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

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