Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

20 Experts available now in Live!

Get 1:1 Help Now