IBM developerWorks
           IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old February 10th, 2004, 05:44 PM
stringman stringman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 45 stringman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 54 m 3 sec
Reputation Power: 5
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

Reply With Quote
  #2  
Old February 10th, 2004, 07:34 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,716 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 33 m 54 sec
Reputation Power: 688

Reply With Quote
  #3  
Old February 11th, 2004, 10:00 AM
stringman stringman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 45 stringman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 54 m 3 sec
Reputation Power: 5
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

Reply With Quote
  #4  
Old February 11th, 2004, 12:56 PM
stringman stringman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 45 stringman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 54 m 3 sec
Reputation Power: 5
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > CGI commands not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway