IIS 6.0 does not display Perl Debugging info in browser
Discuss IIS 6.0 does not display Perl Debugging info in browser in the IIS forum on Dev Shed. IIS 6.0 does not display Perl Debugging info in browser IIS forum discussing Microsoft's Internet Information Server including its configuration, optimization and other related topics. IIS is the most popular web server for the Windows platform.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.
Posts: 5
Time spent in forums: 24 m 42 sec
Reputation Power: 0
IIS 6.0 does not display Perl Debugging info in browser
I have been testing IIS 6.0 for a future upgrade from IIS 5.0. IIS 6.0 is not returning debugging info to the browser when IIS 5.0 did. For example, I will execute a Perl script in an CGI Executable directory in IIS 6.0 that uses a module that is not installed on the server. This is what it returns:
========================
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
If I run the same script on IIS 5.0, this is what is returns:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Can't locate Gettext.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:\Websites\secure\cgi-bin\test2.pl line 1.
BEGIN failed--compilation aborted at C:\Websites\secure\cgi-bin\test2.pl line 1.
========================
This may seem like a trivial thing, but it actually turns a quick debug operation into a surprisingly time consuming process, especially when you need to debug a lot of problems.
Posts: 13,737
Time spent in forums: 1 Month 3 Weeks 3 Days 6 h 39 m 9 sec
Reputation Power: 4107
Check with your Perl vendor.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
Posts: 5
Time spent in forums: 24 m 42 sec
Reputation Power: 0
I did, and they said that it's because IIS 6 now REQUIRES that a Content-type header be returned, so I added a header within a BEGIN {} in the code in hopes that would get the header out before the compilation error. That got rid of the CGI Error, but there was still no output to the browser (blank screen). I have not been able to find a setting in IIS or the registry that controls the necessity of headers for CGI programs, but I have doubts that is even the problem.
Also, I am running the exact same installation of Activestate Perl (5.6.1 Build 628) on Win2k3 as I am on Win2k, so this is definately a change in behavior in IIS 6 or Win2k3 from IIS 5/win2k.
Posts: 1
Time spent in forums: 2 m 28 sec
Reputation Power: 0
We are also having the same issue. I need to see the output of those scripts! On Windows Server 2003 in this case it was a fresh install of IIS 6 on a new server, but we copied the entire web root from an old IIS 5 install (on windows 2000) to the new server, and just pointed the web root to the copied directory. Still though, this seems like a basic requirement for people trying to develop and debug CGI scripts. Surely there is a setting somewhere? Maybe this is something found in the deep dark magic of Metabase?