How do I get the current Application Name (in terms of IIS) in a classic asp Web application
Posted
by Mr AH
on Stack Overflow
See other posts from Stack Overflow
or by Mr AH
Published on 2010-05-10T16:01:16Z
Indexed on
2010/05/10
16:04 UTC
Read the original article
Hit count: 202
asp-classic
|application-name
I have a classic asp application which retrieves the current application name and sets an Application variable containing that name. This name is important (I wont go into why) and is essentially the friendly name in IIS.
The problem is, the implementation used to get this name is flawed, it a) assumes the home directory contains the string wwwroot, and b) assumes the folder name is the same as the application name. I can no longer guarantee these conditions.
I would have thought the application name is know at run-time but I can't seem to find it in either Session or Application variables (at application start up entry point in global.asa). Any ideas?
© Stack Overflow or respective owner