PC Review


Reply
Thread Tools Rate Thread

Determine app pool from code

 
 
Steve Lynch
Guest
Posts: n/a
 
      1st Feb 2007

Is there a way to check from within the code which application pool is being
used? I want to include the name of the current app pool in the tracing output.

Thanks!


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      1st Feb 2007
Since the application pool is already predetermined by the settings in IIS,
you should already know this information.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"Steve Lynch" wrote:

>
> Is there a way to check from within the code which application pool is being
> used? I want to include the name of the current app pool in the tracing output.
>
> Thanks!
>
>
>

 
Reply With Quote
 
Steve Lynch
Guest
Posts: n/a
 
      4th Feb 2007

Thank you Captain Obvious. If you don't know the answer to a question then
don't post a useless reply.

I don't always have access to IIS Manager. If I'm not an administrator of
the web server, or it is at a customer site behind a firewall and all I have
access to is port 80 or 443 I would like an easy way to get this app pool
included in trace outputs and log files.


"Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in
message news:F651AD75-7AD0-4168-9D74-(E-Mail Removed)...
> Since the application pool is already predetermined by the settings in
> IIS,
> you should already know this information.
> Peter
>
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> Short urls & more: http://ittyurl.net
>
>
>
>
> "Steve Lynch" wrote:
>
>>
>> Is there a way to check from within the code which application pool is
>> being
>> used? I want to include the name of the current app pool in the tracing
>> output.
>>
>> Thanks!
>>
>>
>>


 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      4th Feb 2007
Thanks for the compliment, First Mate Oblivious! A quick search on google
would have shown that my buddy and fellow MVP Rick Strahl has a solution to
your issue:

http://west-wind.com/WebLog/posts/10181.aspx

Cheers,
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"Steve Lynch" wrote:

>
> Thank you Captain Obvious. If you don't know the answer to a question then
> don't post a useless reply.
>
> I don't always have access to IIS Manager. If I'm not an administrator of
> the web server, or it is at a customer site behind a firewall and all I have
> access to is port 80 or 443 I would like an easy way to get this app pool
> included in trace outputs and log files.
>
>
> "Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in
> message news:F651AD75-7AD0-4168-9D74-(E-Mail Removed)...
> > Since the application pool is already predetermined by the settings in
> > IIS,
> > you should already know this information.
> > Peter
> >
> > --
> > Site: http://www.eggheadcafe.com
> > UnBlog: http://petesbloggerama.blogspot.com
> > Short urls & more: http://ittyurl.net
> >
> >
> >
> >
> > "Steve Lynch" wrote:
> >
> >>
> >> Is there a way to check from within the code which application pool is
> >> being
> >> used? I want to include the name of the current app pool in the tracing
> >> output.
> >>
> >> Thanks!
> >>
> >>
> >>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop code 19 BAD-POOL-HEADER during backup Jason Windows XP Help 3 13th Oct 2007 07:06 PM
The server was unable to allocate from the system nonpaged pool because the pool was empty BAseline Microsoft Windows 2000 Setup 4 8th Feb 2006 03:49 AM
Determine if connection is from pool or newly opened stephen_barrett@aon.com Microsoft ADO .NET 0 3rd Nov 2005 06:49 PM
Determine if connection is from pool or newly opened stephen_barrett@aon.com Microsoft ADO .NET 0 3rd Nov 2005 06:48 PM
RE: Event ID 2020 Unable to allocate from the system paged pool because pool was empty Steven Liu [MSFT] Microsoft Windows 2000 Terminal Server Applications 0 5th Aug 2003 10:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:44 PM.