[Migrated content. Thread originally posted on 03 July 2010]
I have been using the 7.2.1 runtime as CGI on a Windows 2000 Server computer running IIS 5 to dynamically return Vision query results. I am now trying to use the 8.1.2 runtime as CGI with the same COBOL objects on a Windows 2008 Server running IIS 7. In the web site setup on the new server, I did "Add Application" using the cgi-bin folder where the runtime resides. I can use the runtime in that folder from the Windows desktop with no problems. When I try to call it through IIS, I get the following error message:HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "License file '\\\\?\\D:\\database\\cgi-bin\\wrun32.dll' inaccessible ".
Module CgiModule
Notification ExecuteRequestHandler
Handler CGI-exe
Error Code 0x0000000a
Requested URL http://data1.bsmgr.com:80/cgi-bin/wrun32.exe?-f BKSEARCH
Physical Path D:\\database\\cgi-bin\\wrun32.exe
Logon Method Anonymous
Logon User Anonymous
I ran the license activator in the D:\\database\\cgi-bin folder. The runtime, dll and license files are all in that folder. I put the folder in the system path. I gave the IUSR user Modify/Read/Write permissions on the folder and everything in it (files and subfolders), and even tried it with the Windows Firewall disabled.
Any ideas or suggestions? Is there a setup sequence somewhere for implementing the runtime for use with CGI calls on IIS 7 in Windows 2008?
TIA!
Shane



