|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
CGI commands not working
I have set up my Web site on IIS to use SSI by adding the asp.dll file using the .html extension. Everything works fine for include files. However, commands such as:
<!--#echo var="LAST_MODIFIED" --> or <!--#config sizefmt="abbrev"--><!--#fsize virtual="data/adrg.exe"--> or <!--#config timefmt="%d-%b-%y" --><!--#flastmod virtual="data/adrg.exe"--> do not show any output. Web site properties are: 1. The Local Path frame is allowing Script Source Access, read, and write 2. Application has been created 3. Execute Permissions: scripts only 4. Application protection: medium 5. No default documents 6. The default asp HTTP verbs have been configured to the .html extension Still, only the include commands work. At the clients' site, the commands work as long as they are not included within a <td> tag. The application extension mapping screen shot is attached. Any help would be appreciated? Thanks in advance. Ken |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
Thank you Doug. I reconfigured IS to use the ssinc.dll in place of the asp.dll (which MS recommends for SSI) and the the following directives work:
<!--#config timefmt="%d-%b-%y" --><!--#<!--#echo var="LAST_MODIFIED" --> However, the following does not work: <!--#config sizefmt="abbrev"--><!--#fsize virtual="data/adrg.exe"--> or <!--#config timefmt="%d-%b-%y" --><!--#flastmod virtual="data/adrg.exe"--> The following error is shown in place of the output: "Cannot perform fsize( 'data/adrg.exe' ): Win32 Error Code = 3" and "Cannot perform flastmod( 'data/adrg.exe' ): Win32 Error Code = 3" I performed a brief search on MSDN for the "Win32 error code = 3" w/out any luck. Here is the HTML in which the directives are contained: <tr> <td class="font" width="120"> <a href="data/adrg.exe">FoxPro</a></td> <td class="font" width="70"><!--#config sizefmt="abbrev"--><!--#fsize virtual="data/adrg.exe"--></td> <td class="font" width="100"><!--#config timefmt="%d-%b-%y" --><!--#flastmod virtual="data/adrg.exe"--></td> <td class="font" width="200">FoxPro metadata file</td> </tr> Any help would be appreciated. Thanks. stringman |
|
#4
|
|||
|
|||
|
Problem Solved!
Most of the time it's something simple and this is no exception. I was using "virtual" instead of "file" in which to reference the file to perform the directive. Not only did it solve this problem, but it solved another problem in which the #include directive was not working because I was using "file" instead of "virtual". Apparently, the "file" option can only be used to drill into a subdirectory or to look w/in the current directory (i.e., file=include.ssi or file="ssi/include.ssi"), not file="../ssi/include.ssi". Anyway, I hope this helps someone. stringman |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > CGI commands not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|