Monitor IIS AppPool from ASP.NET web service

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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,...
    2. 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,...
    3. 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...
    4. [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...
    5. [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...
  3. #2

    Default 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

  4. #3

    Default 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...
    > 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
    > >
    > >
    >
    >

    Navin Mishra Guest

  5. #4

    Default 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...
    > 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...
    > > 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
    > > >
    > > >
    > >
    > >
    >
    >

    Navin Mishra Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139