Solved

Active Server Pages error 'ASP 0129'     Unknown scripting language

Posted on 2004-04-01
3
1,561 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
  • 2
3 Comments
 
LVL 1

Accepted Solution

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

Author Comment

by:str_kani
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now