2

We have this classic asp application that I tried to install on IIS7.5 (Windows 2008 Server R2). Everything works except that include virtual statements with backslash, e.g.

<!-- #include virtual="\includes\file.inc"-->

doesn't work even though I enabled "Enable parent paths" in IIS.

It does work if I change the backslash () to slash (/), i.e.

<!-- #include virtual="/includes/file.inc"-->

This code has been working for a long time and I'm not keen on changing that kind of code at this point. Is there some setting that I can set get this to work so I can use the code as it is?

Regards, Mathias

Brien Foss
  • 3,336
  • 3
  • 21
  • 31
Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96

1 Answers1

5

This has nothing to do with parent paths. If \ used work then it was a quirk because the virtual path is expected to follow the conventions of a URL.

You will need to hunt down all uses of the virtual attribute and change to the correct use of /

AnthonyWJones
  • 187,081
  • 35
  • 232
  • 306