473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get Application Pool Name

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
Mar 13 '07 #1
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

Mar 13 '07 #2
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


Mar 13 '07 #3
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


Mar 13 '07 #4
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



Mar 13 '07 #5
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



Mar 13 '07 #6
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
>




Mar 13 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
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...
9
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...
5
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...
2
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...
6
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...
13
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:...
6
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...
5
markrawlingson
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...
1
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...
0
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
0
BarryA
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...
1
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...
0
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...
0
marktang
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,...
0
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.