#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    50
    Rep Power
    11

    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. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,436
    Rep Power
    4539
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    50
    Rep Power
    11
    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
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    50
    Rep Power
    11
    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

IMN logo majestic logo threadwatch logo seochat tools logo