Solved

Active Server Pages error 'ASP 0129'     Unknown scripting language

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

630 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