How can you get the application pool name that handles the web request?
Currently we display the server name using: <!-- <%= Server.MachineName
%--but would like to also display what application pool the page came
from.
Thanks,
Serge 6 3385
Try Request.ServerVariables["APP_POOL_ID"]
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
How can you get the application pool name that handles the web request?
Currently we display the server name using: <!-- <%= Server.MachineName
%--but would like to also display what application pool the page came
from.
Thanks,
Serge
Nah, that won't do it.
Here's the way to do it : http://west-wind.com/WebLog/posts/10181.aspx
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message
news:OK**************@TK2MSFTNGP03.phx.gbl...
Try Request.ServerVariables["APP_POOL_ID"]
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message news:%2******************@TK2MSFTNGP03.phx.gbl...
>How can you get the application pool name that handles the web request? Currently we display the server name using: <!-- <%= Server.MachineName %--but would like to also display what application pool the page came from.
Thanks, Serge
Eliyahu,
Thanks for the suggestion. I tried that on IIS 6.0 and it does not return
anything. LOCAL_ADDR works fine though and returns the IP. I did a trace to
check all the server variables and there is no APP_POOL_ID (while everything
else is there). Any idea why that is missing from the server variables?
Thank you for your help,
Serge
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OK**************@TK2MSFTNGP03.phx.gbl...
Try Request.ServerVariables["APP_POOL_ID"]
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>How can you get the application pool name that handles the web request? Currently we display the server name using: <!-- <%= Server.MachineName %--but would like to also display what application pool the page came from.
Thanks, Serge
Hmm...It is actually listed here http://msdn2.microsoft.com/en-us/library/ms524602.aspx
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message
news:uf****************@TK2MSFTNGP06.phx.gbl...
Eliyahu,
Thanks for the suggestion. I tried that on IIS 6.0 and it does not return
anything. LOCAL_ADDR works fine though and returns the IP. I did a trace
to check all the server variables and there is no APP_POOL_ID (while
everything else is there). Any idea why that is missing from the server
variables?
Thank you for your help,
Serge
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OK**************@TK2MSFTNGP03.phx.gbl...
>Try Request.ServerVariables["APP_POOL_ID"]
-- Eliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message news:%2******************@TK2MSFTNGP03.phx.gbl. ..
>>How can you get the application pool name that handles the web request? Currently we display the server name using: <!-- <%= Server.MachineName %--but would like to also display what application pool the page came from.
Thanks, Serge
Yup, I know. :) Trying to figure out why it's not working with IIS 6.0.
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uN**************@TK2MSFTNGP02.phx.gbl...
Hmm...It is actually listed here http://msdn2.microsoft.com/en-us/library/ms524602.aspx
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message
news:uf****************@TK2MSFTNGP06.phx.gbl...
>Eliyahu, Thanks for the suggestion. I tried that on IIS 6.0 and it does not return anything. LOCAL_ADDR works fine though and returns the IP. I did a trace to check all the server variables and there is no APP_POOL_ID (while everything else is there). Any idea why that is missing from the server variables?
Thank you for your help, Serge
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message news:OK**************@TK2MSFTNGP03.phx.gbl...
>>Try Request.ServerVariables["APP_POOL_ID"]
-- Eliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message news:%2******************@TK2MSFTNGP03.phx.gbl.. . How can you get the application pool name that handles the web request? Currently we display the server name using: <!-- <%= Server.MachineName %--but would like to also display what application pool the page came from.
Thanks, Serge
It doesn't work for my IIS 6.0, either.
Maybe it's time to file a bug report ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Serge" <se***@farebuzz.comwrote in message news:uy**************@TK2MSFTNGP05.phx.gbl...
Yup, I know. :) Trying to figure out why it's not working with IIS 6.0.
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message
news:uN**************@TK2MSFTNGP02.phx.gbl...
>Hmm...It is actually listed here http://msdn2.microsoft.com/en-us/library/ms524602.aspx
-- Eliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message news:uf****************@TK2MSFTNGP06.phx.gbl...
>>Eliyahu, Thanks for the suggestion. I tried that on IIS 6.0 and it does not return anything. LOCAL_ADDR works fine though and returns the IP. I did a trace to check all the server variables and there is no APP_POOL_ID (while everything else is there). Any idea why that is missing from the server variables?
Thank you for your help, Serge
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message news:OK**************@TK2MSFTNGP03.phx.gbl... Try Request.ServerVariables["APP_POOL_ID"]
-- Eliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
"Serge" <se***@farebuzz.comwrote in message news:%2******************@TK2MSFTNGP03.phx.gbl... How can you get the application pool name that handles the web request? Currently we display the server name using: <!-- <%= Server.MachineName %--but would like to also display what application pool the page came from. > Thanks, Serge > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: William LaMartin |
last post by:
I have a problem, mentioned here before, of Session and Application
variables disappearing at one site but not at others or on my development
computer.
The problem is illustrated by an example...
|
by: Abhishek Srivastava |
last post by:
Hello All,
In IIS 6.0 We have a concept of worker processes and application pools.
As I understand it, we can have multiple worker process per appliction
pool. Each worker process is dedicated...
|
by: J-T |
last post by:
I guess I'm a litte bit confused about app pool and worker process.
In IIS 6.0 We have a concept of worker processes and application pools. As I
understand it, we can have multiple worker process...
|
by: Ronald |
last post by:
I just started with dotnetnuke, and with a wrong login (wrong password
on a clean install i can crash the application pool from IIS.
(when i login with the right username/password information the...
|
by: M Craig |
last post by:
I'm trying to write a custom installation engine to plug into our
existing build system. Some things I'm trying to do are,
Create/Delete/Start/Stop Application Pools, Web Sites, and Virtual...
|
by: Kevin Liebowicz |
last post by:
Yes, I wasted the past two days trying to fix this.
Yes, this is on a Win2003 Server.
Yes, this machine is a domain controller.
Yes, I seen the dozens of KB articles like this one:...
|
by: Dylan Nicholson |
last post by:
Running as an administrator, I can retrieve the account password
stored by IIS for any application pool (using the WAMUserPass
property). But, unsurprisingly, an ASP.NET application running inside...
|
by: markrawlingson |
last post by:
Hey guys,
Having a bit of a complicated issue here so please bare with me while I explain. I'm also not a system admin and don't know a whole lot about IIS, so i apologize in advance.
I...
|
by: johnyjj2 |
last post by:
Hello!
I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |