Solved

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

Posted on 2010-08-24
2
514 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
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: 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

Suggested Solutions

Title # Comments Views Activity
Filtering a file to table 9 101
perl CPAN issue 3 116
Exchange 2010 Transport Rule Regex 28 119
Control Number of Log Files -Perl 7 87
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…

856 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