Forum Moderators: open

Message Too Old, No Replies

Application relative paths

         

garann

6:16 pm on Apr 12, 2006 (gmt 0)

10+ Year Member



Hi,

I've pulled down an existing application from Visual Source Safe and I think I've correctly identified it as an application in IIS. However, none of its application relative paths are working - they're all still relative to the wwwroot directory. Can anyone suggest a solution?

TIA!

garann

6:34 pm on Apr 14, 2006 (gmt 0)

10+ Year Member



*bump*

Maybe I can explain better. If I have a file at

c:\inetpub\wwwroot\myApp\img\myGif.gif
and I refer to it as
\img\myGif.gif
, I'm getting
c:\inetpub\wwwroot\img\myGif.gif
even though myApp is defined as a virtual directory and an application.

Any suggestions as to what I'm doing wrong? Is this not possible in 2003 Server?

emsaw

2:17 pm on Apr 15, 2006 (gmt 0)

10+ Year Member



garann,

try using ~ .

~ represents the current application path.

if your application is named myApp, then in that application, ~ would mean /myApp

~/img/logo.jpg would resolve to /myApp/img/logo.jpg

HTH,

Mark