Wrox Home  
Search P2P Archive for: Go

  Return to Index  

interdev_programming thread: Include Files


Message #1 by "Brian Bishop" <bbishop@f...> on Thu, 17 May 2001 14:26:16
1) Create an "inc" folder in your project.  Move your '.inc' files to that 
directory.

2) Use relative pathing to identify the location of your .inc files. You 
are currently using absolute paths that start with the root ("/") and this 
blows up when the name of your VirtualRoot is not the same path as the 
root on your server.

Example:
<!-- #include file="inc/navbar-script.inc"-->

If you need to refer to the include file from an asp script that resides 
in a different subdirectory, you can use the DOS/UNIX convention of "../" 
to move 'back' a level.

Example:
<!-- #include file="../inc/navbar-script.inc"-->

3) once you sync the project, everything should work independent of your 
VirtualRoot names... that is the benefit of relative pathing.

Good luck,
-jim@m...

 
> I have just started working with Visual Interdev and have an issue that 
I 
> need to get an answer to. I was able finally to get the Debug Facility 
in 
> Visual Interdeve working after much trial and error not to mention pain 
> and suffering. 
> 
> Now that I have this working when I attempt to run an ASP application in 
> debug mode I get an error that it is unable to find my Include files
> 
> When I set up the application the Server side directory structure is set 
> up as
> 
> //{server name}/inetpub/custormer service on the client it was created as
> 
> C:/inetpub/customer service/customer service_local
> 
> I have the VirtualRoot of my client side project setup to be
> /customer service_root
> 
> When I run the page and view it in a web browser from the server it 
finds 
> my include files fine but, if I run it in client side debug I get the 
> following error message.
> 
> Active Server Pages error 'ASP 0126' 
> 
> Include file not found 
> 
> /Customer Service_Local/default.asp, line 10 
> 
> The include file '/IncludeFiles/navbar-script.inc' was not found.
> 
> Does anyone know what I am doing incorrectly or how I can fix this
> problem any help would be greatly appreciated.
> 
> Thanks.

  Return to Index