|
Home > Archive > IIS Server > December 2005 > I hope am not asking a too common a question: File Vs. Virtual pa
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 |
I hope am not asking a too common a question: File Vs. Virtual pa
|
|
|
| Hi all,
I have a problem... Silly but very annoying...
My development and testing environment (ASP on local IIS 6.0 on Win XP SP2)
doesn't find the include files if they are virtual paths (example:
<!--#include virtual="inc-functions.asp" --> ) and my real server doesn't
allow parent directory navigation i.e. cannot find file paths (example:
<!--#include file="../inc-functions.asp" --> )
Is there a way to let local IIS work fine with Virtual paths so that I won't
have to change all my include files before uploading??
Thank you.
Einy.
| |
|
| Apologies!!
My testing environment is IIS 5.1 on XP Pro SP2 and real server is IIS 6.0
on Win2k3 :-)
"Einy" wrote:
> Hi all,
>
> I have a problem... Silly but very annoying...
>
> My development and testing environment (ASP on local IIS 6.0 on Win XP SP2)
> doesn't find the include files if they are virtual paths (example:
> <!--#include virtual="inc-functions.asp" --> ) and my real server doesn't
> allow parent directory navigation i.e. cannot find file paths (example:
> <!--#include file="../inc-functions.asp" --> )
>
> Is there a way to let local IIS work fine with Virtual paths so that I won't
> have to change all my include files before uploading??
>
> Thank you.
>
> Einy.
| |
| David Wang [Msft] 2005-12-28, 2:54 am |
| Not certain what the real question is...
Using file path is not very flexible without parent paths because you can't
reorganize.
If using virtual path, then make sure that your local test environment has
the same virtual namespace as the server. In other words:
<!--#include virtual="/MyVdirOnHostServer/inc-functions.asp" -->
Make sure to upload inc-functions.asp to that location on the server, and
make sure on your test server you also have /MyVdirOnHostServer defined and
pointing to your local copy of inc-functions.asp
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Einy" <Einy@discussions.microsoft.com> wrote in message
news:59021D9C-B598-4B5C-A412-8356A37245E5@microsoft.com...
> Hi all,
>
> I have a problem... Silly but very annoying...
>
> My development and testing environment (ASP on local IIS 6.0 on Win XP
> SP2)
> doesn't find the include files if they are virtual paths (example:
> <!--#include virtual="inc-functions.asp" --> ) and my real server doesn't
> allow parent directory navigation i.e. cannot find file paths (example:
> <!--#include file="../inc-functions.asp" --> )
>
> Is there a way to let local IIS work fine with Virtual paths so that I
> won't
> have to change all my include files before uploading??
>
> Thank you.
>
> Einy.
|
|
|
|
|