The problem may be because IIS is trying to execute the scripts in the directory above the cgi-bin. The solution is to make the CGI-BIN a virtual URL instead of a physical URL.
If your setup is:
htdocs http://www.myserver.com/)
/cgi-bin (http://www.myserver.com/cgi-bin/)
/acatalog (http://www.myserver.com/acatalog/)
You should change the server setup to be:
htdoc (http://www.myserver.com/)
/cgi (http://www.myserver.com/cgi-bin/ - virtual URL)
/acatalog (http://www.myserver.com/acatalog/)
If your setup is:
htdocs http://www.myserver.com/)
/cgi-bin (http://www.myserver.com/cgi-bin/)
/acatalog (http://www.myserver.com/acatalog/)
You should change the server setup to be:
htdoc (http://www.myserver.com/)
/cgi (http://www.myserver.com/cgi-bin/ - virtual URL)
/acatalog (http://www.myserver.com/acatalog/)