473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Path Not Found when doing Virtual SSI. What am I missing?

We have a production web site - www.thesite.com - laid out as follows on IIS 6:

d:\Inetpub\wwwroot\default.asp

There are lots of subdirectories inside of WWWROOT including a cgi-bin directory that contains a simple ASP Visitor Counter script. This cgi-bin directory sits at

D:\InetPub\wwwroot\cgi-bin\filename.ext

We also have a staging site (for testing web content before posting to the real site) located here.

d:\Inetpub\staging\

This site contains an exact duplicate of the production web site. This staging site exists just outside of the production web site folder (D:\Inetpub\Staging) and is accessible to the main web page via a defined virtual directory on the main web site. That means you can get to the staging site by typing

www.thesite.com/staging/default.htm

When we place the cgi-bin directory inside the staging directory (so that it sits on the same level or below the web page that's using it) and use an Include File command, everything works fine. The default web page sees the script, and executes it perfectly.

The problem is that we need to put this script (and this Include command) in a bunch of web pages that sit in a whole slew of subfolders below staging. Since we don't want to paste a cgi-bin directory off of every folder, we tried to use a Include virtual command as follows:

<!--#Include virtual="/staging/cgi-bin/count.asp"-->

Looking at the Home Tab under the Web site properties, the home directory is

D:\Inetpub/wwwroot.

That should then mean that the Include Virtual command starts in this WWWROOT directory, enters staging/cgi-bin/ and should then find the asp script. Again, since staging exists outside of the WWWROOT folder, we had to create a virtual directory, so that it appears to the web site as if the staging folder is inside the WWWROOT folder.

For some reason, we get the following error when we try to access the page that harbors the Include statement.

Microsoft VBScript runtime error '800a004c'

Path not found

/staging/cgi-bin/count.asp, line 40

We went into the Properties Page of the main web site, clicked on the home tab, configuration, and options, and enabled Parent Paths. We then stopped and restarted the web page. No change. We still get the error.

Why can't the web page see the script? I've been bashing my head against the wall for 9 hours on this (with a screaming manager right outside the door).

Thanks

Roger
Nov 14 '07 #1
1 2050
jhardman
3,406 Expert 2GB
I just tried searching for this topic, and I ran a few tests. I can't see anyone that says it explicitly, but it looks like the include file has to be in the same folder or a sub-folder of the file which includes it. Sorry, I don't know why that would be the case.

Jared
Nov 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: | last post by:
Is it possible to include my remote web server path eg: m:/html/root/site1 | m:/html/root/site2 etc ....in virtual includes.... Thus eliminating the need to create duplicate INC files in each...
5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
15
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
3
by: Javaman59 | last post by:
Visual Studio 2003/5 question... I'm in the solution explorer, looking at a file. I want to find it's path. The only way i know of doing this is to open it (with a double-click), then mouse over...
19
by: Steve Franks | last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the default ASP.NET Development Web Server it runs using a root address like this: http://localhost:11243/testsite/ However...
0
by: dba123 | last post by:
I'm trying to implement my own Virtual Path Provider class. http://msdn2.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx ...
4
by: tommaso.gastaldi | last post by:
Hi friends I was in the need to find a sort of "definitive" :) solution to transform a virtual path such as "~/MyDir/MyFile into a full web address. In particular I needed it * within web...
10
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!--...
5
by: chris_peoples | last post by:
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/ virtual-dir points to another directory on another server using the unc path: \\server-b\main-dir I have a file at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.