Ask a Question related to ASP.NET Web Services, Design and Development.
-
Navin Mishra #1
Monitor IIS AppPool from ASP.NET web service
Hi,
How could I monitor IIS AppPool from the ASP.NET web service which is
hosted in that same AppPool ? I guess I could use WMI but I've not played
around with it. Is there an example code in ASP.NET for this need ? My
problem is Application_End is not being fired and so I want to trap when the
hosting AppPool recycles so that I could do properly cleamup.
Thanks in advance and regards
Navin
Navin Mishra Guest
-
3D on 2nd Monitor
I need to be able to run Director projectors with 3D on the 2nd monitor on a Windows XP PC setup to run with dual monitors. The problem is,... -
How to detect if hosting IIS AppPool is recycled or stopped ?
Hi all, Is there a way to detect if hosting IIS AppPool is recycled or stopped so that web service could do proper cleanup ? For my web service,... -
AppPool running with Domain identity - "service unavailable"
I have been trying to move our web apps into their own AppPool so we can run it under a specific domain account and hit our DB servers. Whenever I... -
[ANN] Net Monitor F3.5.0b2
The French.lproj folder, F3.5.0b2, for Net Monitor is now available at <ftp://ftp.sri.ucl.ac.be/pub/NetMonitor/>. And maybe soon on one of the... -
[ANN] Net Monitor F3.1.2
The French.lproj folder, F3.1.2, for Net Monitor is now available at <ftp://ftp.sri.ucl.ac.be/pub/NetMonitor/>. And maybe soon on one of the... -
Clemens Reijnen #2
Re: Monitor IIS AppPool from ASP.NET web service
to use wmi in your c# files you have to use the System.Management namespace
and query voor the iis wmi-classes:
ManagementObjectSearcher Searcher = new ManagementObjectSearcher();
ManagementScope Scope = new ManagementScope("root\\iis name have to look
for it");
Searcher.Scope = Scope;
SelectQuery Query = new SelectQuery();
StringBuilder queryString = new StringBuilder();
queryString.Append("SELECT * FROM bla bla");
etc
etc
etc
to find all the parameters and methods you can use cim-studio
greets clemens
"Navin Mishra" <navin.mishra@siemens.com> wrote in message
news:ewY22H6kFHA.3316@TK2MSFTNGP14.phx.gbl...> Hi,
>
> How could I monitor IIS AppPool from the ASP.NET web service which is
> hosted in that same AppPool ? I guess I could use WMI but I've not played
> around with it. Is there an example code in ASP.NET for this need ? My
> problem is Application_End is not being fired and so I want to trap when
> the
> hosting AppPool recycles so that I could do properly cleamup.
>
> Thanks in advance and regards
>
> Navin
>
>
Clemens Reijnen Guest
-
Navin Mishra #3
Re: Monitor IIS AppPool from ASP.NET web service
Thanks. A concrete example is appreciated for the newbie like me!
"Clemens Reijnen" <ClemensReijnen@hotmail.com> wrote in message
news:ebGtWLNlFHA.2920@TK2MSFTNGP14.phx.gbl...namespace> to use wmi in your c# files you have to use the System.Managementlook> and query voor the iis wmi-classes:
>
> ManagementObjectSearcher Searcher = new ManagementObjectSearcher();
> ManagementScope Scope = new ManagementScope("root\\iis name have toplayed> for it");
>
> Searcher.Scope = Scope;
> SelectQuery Query = new SelectQuery();
>
> StringBuilder queryString = new StringBuilder();
> queryString.Append("SELECT * FROM bla bla");
> etc
> etc
> etc
>
> to find all the parameters and methods you can use cim-studio
>
> greets clemens
>
>
> "Navin Mishra" <navin.mishra@siemens.com> wrote in message
> news:ewY22H6kFHA.3316@TK2MSFTNGP14.phx.gbl...> > Hi,
> >
> > How could I monitor IIS AppPool from the ASP.NET web service which is
> > hosted in that same AppPool ? I guess I could use WMI but I've not>> > around with it. Is there an example code in ASP.NET for this need ? My
> > problem is Application_End is not being fired and so I want to trap when
> > the
> > hosting AppPool recycles so that I could do properly cleamup.
> >
> > Thanks in advance and regards
> >
> > Navin
> >
> >
>
Navin Mishra Guest
-
Navin Mishra #4
Re: Monitor IIS AppPool from ASP.NET web service
Could it be happening because of multiple asmx files in my web service ? In
a test web service in which there is a single ASMX file, Application_End is
being fired all right. But not when there are multiple asmx files ?
Thanks in advance and regards
"Navin Mishra" <navin.mishra@siemens.com> wrote in message
news:eUl%23dwvlFHA.3816@tk2msftngp13.phx.gbl...is> Thanks. A concrete example is appreciated for the newbie like me!
>
> "Clemens Reijnen" <ClemensReijnen@hotmail.com> wrote in message
> news:ebGtWLNlFHA.2920@TK2MSFTNGP14.phx.gbl...> namespace> > to use wmi in your c# files you have to use the System.Management> look> > and query voor the iis wmi-classes:
> >
> > ManagementObjectSearcher Searcher = new ManagementObjectSearcher();
> > ManagementScope Scope = new ManagementScope("root\\iis name have to> > for it");
> >
> > Searcher.Scope = Scope;
> > SelectQuery Query = new SelectQuery();
> >
> > StringBuilder queryString = new StringBuilder();
> > queryString.Append("SELECT * FROM bla bla");
> > etc
> > etc
> > etc
> >
> > to find all the parameters and methods you can use cim-studio
> >
> > greets clemens
> >
> >
> > "Navin Mishra" <navin.mishra@siemens.com> wrote in message
> > news:ewY22H6kFHA.3316@TK2MSFTNGP14.phx.gbl...> > > Hi,
> > >
> > > How could I monitor IIS AppPool from the ASP.NET web service whichwhen> played> > > hosted in that same AppPool ? I guess I could use WMI but I've not> > > around with it. Is there an example code in ASP.NET for this need ? My
> > > problem is Application_End is not being fired and so I want to trap>> >> > > the
> > > hosting AppPool recycles so that I could do properly cleamup.
> > >
> > > Thanks in advance and regards
> > >
> > > Navin
> > >
> > >
> >
>
Navin Mishra Guest



Reply With Quote

