Solved

Active Server Pages error 'ASP 0129'     Unknown scripting language

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
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…

821 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