Solved

The specified CGI application misbehaved by not returning a complete set of HTTP headers

Posted on 2010-08-24
2
524 Views
Last Modified: 2012-05-10
Experts-

Win2K3 fully patched
IIS 6
ActiveState perl 5.12.x

I have a web page built by someone who no longer works for our company. The server the site lived on crashed, so I had to recreate the server (IIS 6), then bring the page back from backup. Now when I navigate to the home page it loads as expected but when I navigate to subpages I am thrown this error- "The specified CGI application misbehaved by not returning a complete set of HTTP headers"

One thing I have noticed is on one of the pages that will not load (see code insert) I do not see the File-Copy or  CGI-Carp qw modules listed as installed in the package manager. When I attempt to load the modules they are not listed as an option to install. Would this be the problem?

I am new to Perl so please be through and detailed.

Thank you for taking your time to read this.
use strict;
use warnings;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use Win32::Internet;
use Mime::Lite;
use Cwd;
use File::Copy;

Open in new window

0
Comment
Question by:Sandbar09
[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 Comments
 
LVL 2

Expert Comment

by:gilem
ID: 33510785
There is really not enough information to answer this question.  In IIS, the errors should show up in the Event Log.

The easiest way to debug it is to run it from the command line, so you can see the errors, or look in the error log.
0
 

Accepted Solution

by:
Sandbar09 earned 0 total points
ID: 33517871
I figured this out on my own. 18 painful hours later... here was what solved the issue for me and hopefully someone can use this solution as well.

Start->Settings->Control Panel->Administrative Tools->Internet Services
Manager.

Then expand the tree until you see "Default Web Site" and right-click on it and select Properties. Then select the "Home Directory" tab, then click on the "Configuration."

Now you'll see the "Application Configuration" dialog, where the "App Mappings" tab should be active. Scroll through the list and find the one for ".pl" and ".CGI" then edit each one.

You will want to keep the file path, but change the perl.exe to "perlis.dll". And remove the "%$" after the file name.

you will also change your "Web Service Extensions" from \perl\bin "%s" %s to \perl\bin\perlis.dll

Save your changes and then restart your web server to ensure the changes take affect.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

752 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