IIS Server - unable to use virtual paths IIS 5.1

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > January 2005 > unable to use virtual paths IIS 5.1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author unable to use virtual paths IIS 5.1
TJS

2005-01-28, 5:54 pm

Is there a way t get iis 5.1 to recognize virtual paths for a vrtual folder
??

for server side includes, I am unable to use virtual paths in my websites on
a IIS 5.1 server (Winxp Pro sp2).

<!--#include virtual="/<virtual path>/<filename.ext>"-->

I can only use parent paths

<!--#include file="../<filename.ext>"-->

For the specific virtual folder, I tried disabling the checkbox for enabling
parent paths in the website configuration options, but it still won't
recognize virtual paths.

I also tried the same for the default website root, still no suucess.

any tips on how to get this to work ??







Jeff Cochran

2005-01-29, 2:47 am

On Fri, 28 Jan 2005 13:51:00 -0800, "TJS" <nospam@here.com> wrote:

>Is there a way t get iis 5.1 to recognize virtual paths for a vrtual folder
>??
>
>for server side includes, I am unable to use virtual paths in my websites on
>a IIS 5.1 server (Winxp Pro sp2).
>
><!--#include virtual="/<virtual path>/<filename.ext>"-->
>
>I can only use parent paths
>
><!--#include file="../<filename.ext>"-->
>
>For the specific virtual folder, I tried disabling the checkbox for enabling
>parent paths in the website configuration options, but it still won't
>recognize virtual paths.
>
>I also tried the same for the default website root, still no suucess.
>
>any tips on how to get this to work ??


I may be daft, but what exactly is a "virtual path"?

Jeff
TJS

2005-01-29, 2:47 am

A virtual path is one which start from the root of the virtual site and
drills down according to path info provided.

A relative path is a path starting from the location of the calling script.
These can point up or down.







Kristofer Gafvert

2005-01-29, 2:47 am

Hello,

What is the problem? If i understood you correctly what you wanted to do,
i could do it on a Windows XP SP2 machine.

Do you see any errors?

--
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com


TJS wrote:

> Is there a way t get iis 5.1 to recognize virtual paths for a vrtual

folder
> ??
>
> for server side includes, I am unable to use virtual paths in my

websites on
> a IIS 5.1 server (Winxp Pro sp2).
>
> <!--#include virtual="/<virtual path>/<filename.ext>"-->
>
> I can only use parent paths
>
> <!--#include file="../<filename.ext>"-->
>
> For the specific virtual folder, I tried disabling the checkbox for

enabling
> parent paths in the website configuration options, but it still won't
> recognize virtual paths.
>
> I also tried the same for the default website root, still no suucess.
>
> any tips on how to get this to work ??

TJS

2005-01-29, 5:54 pm

yes, the error message received is, "file not found" , when the virtual
path is applied in the server side include. No error message when the
parent path (ie "relative path") is used.



Jeff Cochran

2005-01-29, 5:54 pm

On Fri, 28 Jan 2005 23:03:59 -0800, "TJS" <nospam@here.com> wrote:

> A virtual path is one which start from the root of the virtual site and
>drills down according to path info provided.
>
> A relative path is a path starting from the location of the calling script.
>These can point up or down.


I must be sleeping. I knew that.

Check the actual path and ensure the file is there. Also, are you
just getting a file not found error or is there possibly a permission
error?

Jeff
TJS

2005-01-30, 2:46 am



TJS

2005-01-30, 2:46 am


yes, the error message received is, "file not found" , when the virtual
path is applied in the server side include. No error message when the
parent path (ie "relative path") is used.


Kristofer Gafvert

2005-01-30, 7:50 am

And the path is correct?

I assume that you get a 500.100 error message, and that it reads something
like:

The include file '/path/file.htm' was not found.

The file that is written in this path really exists? What is the NTFS
permissions on that file/folder?

--
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com


TJS wrote:

> yes, the error message received is, "file not found" , when the virtual
> path is applied in the server side include. No error message when the
> parent path (ie "relative path") is used.

TJS

2005-01-30, 5:51 pm



the permission is the same for relative path and virtual path.
one works the other doesn't



"Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
news:xn0dxv8ejp96el003@news.microsoft.com...[vbcol=seagreen]
> And the path is correct?
>
> I assume that you get a 500.100 error message, and that it reads something
> like:
>
> The include file '/path/file.htm' was not found.
>
> The file that is written in this path really exists? What is the NTFS
> permissions on that file/folder?
>
> --
> Regards,
> Kristofer Gafvert
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> TJS wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com