Perl Engine Does Not Allow Spaces in Directory or Script Name (164144)



The information in this article applies to:

  • Microsoft Internet Information Server 2.0

This article was previously published under Q164144
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SYMPTOMS

Your browser may return the following error message:
CGI Error

The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:

Can't open Perl script "D:\InetPub\wwwroot\": No such file or directory

CAUSE

The directory name within the Perl script has a space in it, or the script name has a space in it.

When you try to run the script, the Perl engine only sees the first half of the script name.

WORKAROUND

Remove any spaces in the directory path names or any spaces in the script name.

Modification Type:MinorLast Reviewed:6/23/2005
Keywords:kbinterop kbprb KB164144