Skip to main content

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
You might check the directories permissions, such as on my XP machine C:\\Inetpub is a read-only directory. Other permissions issues may also occur as IIS was (is) started by whom? (Administrator) and sometimes Administrator has priviledges to start services but not access to certain directories.

Printers also have user specific settings. When you sign on as xxx you can specify which printer to use and the options avaialble, majke sure who ever started IIS has these options available by tring this outside of using a COBOL program, see if you can do this with an ASP.

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
I have, to the best of my ability, checked and set the permissions. My programme DOES write to inetpub, but not to wwwroot which is under it, for which I have opened every permission I know about! I believe that I need to do this so that the html-part of the programme can get hold of the file I have written.

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
check out attached image, see if you have set write permission on this directory.

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
Hello Again

Mine looks like this

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
Attaching simple sample. I was able to get data files created in C:\\inetpub\\wwwroot

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
Thanks for the example.
I tried it here, but got the same error:
File error 93 on COBOLFIL
COBOL error at 00008D in c:\\inetpub\\wwwroot\\svea_cgi\\cobolcgi.acu


When I changed the FILE-PREFIX to c:\\inetpub (without the wwwroot), then it worked correctly!

The answer surely lies in the permissions ... but what could it be?

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
Since error 93 is a "locking error" you might looking at the processes and see if there is a wrun32.exe executing (hung) and you might try stopping and restarting IIS once you have made sure no wrun32 is still in process.

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
Hello

No, I have checked this. There is no other such process.
I have previously encountered situations where incorrect permissions give a 93 error.

Another clue: I cannot run your program from the wwwroort directory. In that case, when I press submit, it just hangs until it times out.
When I move it to a directory one level down, then it works (if the file-prefix is anywhere else) or gives the 93 error (if the file prefix is c:\\inetpub\\wwwroot or below).

All this seems to point to permissions ....

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
Solved. The answer was in the "Security" tab of the properties of the wwwroot directory. The "write" was set to "deny" for the internet guest user. It was difficult to find, as this "Security" tab does not normally appear, unless one has opened it in the folder options!!

[Migrated content. Thread originally posted on 08 May 2006]

1. Creating and writing to a file in CGI
I am not able to create and write a file within the \\inetpub\\wwwroot area on the web-server. I get a 93 error.
I am, however, able to create and write the same file to any other directory on the web server machine without problems.
Any advice?

2. WINPRINTER in CGI
I cannot set the printer to "landscape" from a cgi-programme.
Besides this, it seems to print OK.
MOVE WPRTSEL-ORIENT-LANDSCAPE TO WINPRINT-CURR-ORIENTATION.
The same programme works fine when running directly.
Are there restrictions concerning setting the printer and fonts from a cgi-programme?
Permission can bea bear.

Good job!