Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

816 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

8 Experts available now in Live!

Get 1:1 Help Now