Ask a Question related to ASP, Design and Development.
-
Sharon #1
How to get IIS application name?
Hi all,
Is it possible to programmatically get the IIS application
name at run time? If so, how?
A software package we bought requires some cache file
generated on the server, since we have multiple instance
of the application running on that server (pre-staging,
staging and production) so we need to configure the web to
use the correct cache folder at run time based on
application name.
here is the set up we try to accomplish:
cache file location
A.) C:/cachefolder/pre-staging
B.) C:/cachefolder/staging
C.) C:/cachefolder/production
(a config file will be located at the root of these
virtual directories)
[url]http://myserver/pre-staging[/url]
[url]http://myserver/staging[/url]
[url]http://myserver/production[/url]
so at run time, how can we get the application name so
that :
if appName = "pre-staging" then map to dir A
if appName = "staging" then map to dir B
if appName = "production" then map to dir C
TIA for any help points me to the right direction is
appreciated!
Best Regards,
Sharon
Sharon Guest
-
Flash Remoting Application.cfc & Application.cfm problem
Hi there, When using Flex 1.5 client application, when using Application.cfm to deal with remoting SetCredentials(user,pwd), I just set it once... -
dllimport call in aspnet application makes the application hangs
As our application design requires us to use one of the validation API engine which was written on C(so basically all I have is a dll) and I tested... -
What issue will HIT me hard when I convert an Access 2002 MDE application to Web Application?
Hi All, Current Access 2002 MDE application: - has no tier - has neither business object nor any kind of object (Except MS Form object and... -
Can a web application call methods on a webservice running in the same application
Can a web application call methods on a webservice running in the same application Thanks Ron Vecchi -
How to inherit a base form in all application forms of an asp.net application
hello friend, while developing an asp.net application, i created a base form(say mybaseform1) with certain links on it. then i tried to... -
Tom Kaminski [MVP] #2
Re: How to get IIS application name?
"Sharon" <anonymous@discussions.microsoft.com> wrote in message
news:044c01c39743$99c7d880$a101280a@phx.gbl...If you've got different paths, why not just parse out> Hi all,
>
> Is it possible to programmatically get the IIS application
> name at run time? If so, how?
>
> A software package we bought requires some cache file
> generated on the server, since we have multiple instance
> of the application running on that server (pre-staging,
> staging and production) so we need to configure the web to
> use the correct cache folder at run time based on
> application name.
>
> here is the set up we try to accomplish:
>
> cache file location
>
> A.) C:/cachefolder/pre-staging
> B.) C:/cachefolder/staging
> C.) C:/cachefolder/production
>
> (a config file will be located at the root of these
> virtual directories)
>
> [url]http://myserver/pre-staging[/url]
> [url]http://myserver/staging[/url]
> [url]http://myserver/production[/url]
>
> so at run time, how can we get the application name so
> that :
>
> if appName = "pre-staging" then map to dir A
> if appName = "staging" then map to dir B
> if appName = "production" then map to dir C
>
> TIA for any help points me to the right direction is
> appreciated!
Request.ServerVariables("URL") to figure out what script is running?
--
Tom Kaminski IIS MVP
[url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
[url]http://mvp.support.microsoft.com/[/url]
[url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]
Tom Kaminski [MVP] Guest



Reply With Quote

