I have a simple asp app on a W2K server and am having trouble creating the
application path. The app sits in ..inetpub\wwroot\MyApp.

There is a folder called _support under \MyApp\ that has some include files.
The inc file are referenced in an asp file on the root of \MyApp\.
I've made the \MyApp\ directory an application in inetmgr and the properties
say the app path is <web root>\MyApp.

The problem is the asp code still sees the application root as wwroot
instead of wwroot\MyApp. So the asp code that calls the include files in
\_support returns a server error 500. If I modify the asp to include the
path \MyaApp\_support then everything works.
I thought making a directory an application in inetmgr would make that
directory (MyApp) the root of the app? How can I make MyApp be the root of
the app. We don't want to have to modify the paths in all the asp code and
it doesn't seem like a best practice.
Thanks,
Jim

Re: Problem with App path by David

David
Tue Sep 21 01:17:00 CDT 2004

With what names are you accessing the include files? If you have a "/" or
"\" involved, you are using absolute names, which is exactly what you DO NOT
want to do. You want to use relative names (those that are not rooted with
"/" or "\"), or use MapPath(.) to figure out paths.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Jims" <biz@neocasa.net> wrote in message
news:ONYb%23JynEHA.4056@TK2MSFTNGP09.phx.gbl...
I have a simple asp app on a W2K server and am having trouble creating the
application path. The app sits in ..inetpub\wwroot\MyApp.

There is a folder called _support under \MyApp\ that has some include files.
The inc file are referenced in an asp file on the root of \MyApp\.
I've made the \MyApp\ directory an application in inetmgr and the properties
say the app path is <web root>\MyApp.

The problem is the asp code still sees the application root as wwroot
instead of wwroot\MyApp. So the asp code that calls the include files in
\_support returns a server error 500. If I modify the asp to include the
path \MyaApp\_support then everything works.
I thought making a directory an application in inetmgr would make that
directory (MyApp) the root of the app? How can I make MyApp be the root of
the app. We don't want to have to modify the paths in all the asp code and
it doesn't seem like a best practice.
Thanks,
Jim