IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 7th, 2005, 02:45 AM
easycgi1 easycgi1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 5 easycgi1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #2  
Old June 7th, 2005, 04:24 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Jun 2003
Posts: 11,141 Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 17 h 15 m 54 sec
Reputation Power: 857
Check with your Perl vendor.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old June 7th, 2005, 09:18 AM
easycgi1 easycgi1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 5 easycgi1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #4  
Old June 8th, 2005, 12:45 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Jun 2003
Posts: 11,141 Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 17 h 15 m 54 sec
Reputation Power: 857
I haven't used Perl since back when NT4.0 was the new kid on the block, and I don't have IIS6. How's that for a lot of help?

Perhaps someone who knows will jump in on your questions here.

Reply With Quote
  #5  
Old January 25th, 2007, 03:09 PM
mvanemmerik mvanemmerik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 2 mvanemmerik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 31 sec
Reputation Power: 0
Perl debugging on IIS6.0

I'm having this same problem after upgrading from IIS5 to IIS6. Did you ever get this resolved?

Reply With Quote
  #6  
Old March 9th, 2007, 03:48 PM
BerryP BerryP is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 1 BerryP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #7  
Old March 9th, 2007, 03:56 PM
mvanemmerik mvanemmerik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 2 mvanemmerik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 31 sec
Reputation Power: 0
nph-

The only solution I found was to rename the file by adding a "nph-" in front of the file name. This is for debugging.

Monty

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS 6.0 does not display Perl Debugging info in browser


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT