Re: COM Profiler problems on Win2003

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Tyler (brianmtyler_at_yahoo.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 10:05:47 -0500

Unfortunately no luck.

The IIS Admin Service (inetinfo) is running under Local System and W3SVC
(iissvcs under svchost.exe) runs under Local System also. The ASP.NET
process (w3wp.exe) is run under Network Service (but I've tried Local System
also). Thus setting the envvars in SYSTEM should get them to all these
processes.

Here are the various techniques I used to try to "restart"

1. Used iisreset /restart
2. Used Services control to stop IIS Admin, W3SVC and HTTP SSL.
3. Used IIS Manager to stop the Default Application Pool and the Default Web
Site, and then started them again.

I am most surprised that iisreset didn't do the trick.

For grins, I rebooted the box with enable=1 and got the tracing running.
Then I set it to 0 and tried to see if I could get it to shut off (just in
case there was something funny with the tracing), but I couldn't get that to
work either. Definately the envvar not getting propogated into the right
process.

Brian

"Jonathan Keljo [MS]" <jkeljo@online.microsoft.com> wrote in message
news:uXBf43iJEHA.1460@cpmsftngxa10.phx.gbl...
> OK, yeah, it looks like the process architecture on IIS6 is very
different.
> Try looking at the IIS Admin service, setting the envvars for that user,
> and restarting that service as well as ASP.NET.
>
> Jonathan
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> --------------------
> | X-Tomcat-ID: 768939107
> | References: <OlXeeGzIEHA.3988@tk2msftngp13.phx.gbl>
> <0iJ9ZX$IEHA.308@cpmsftngxa10.phx.gbl>
> <#LwsiNAJEHA.624@TK2MSFTNGP09.phx.gbl>
> | MIME-Version: 1.0
> | Content-Type: text/plain
> | Content-Transfer-Encoding: 7bit
> | From: jkeljo@online.microsoft.com (Jonathan Keljo [MS])
> | Organization: Microsoft
> | Date: Fri, 16 Apr 2004 23:38:27 GMT
> | Subject: Re: COM Profiler problems on Win2003
> | X-Tomcat-NG: microsoft.public.dotnet.framework.clr
> | Message-ID: <mFOwvvAJEHA.304@cpmsftngxa10.phx.gbl>
> | Newsgroups: microsoft.public.dotnet.framework.clr
> | Lines: 108
> | Path: cpmsftngxa10.phx.gbl
> | Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:10288
> | NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
> |
> | You know, this does sound familiar...something about having to restart
> not
> | only the IIS service but also a couple of other things...let me dig in a
> | little and get back to you.
> |
> | Jonathan
> |
> | This posting is provided "AS IS" with no warranties, and confers no
> rights.
> |
> | --------------------
> | | From: "Brian Tyler" <brianmtyler@yahoo.com>
> | | References: <OlXeeGzIEHA.3988@tk2msftngp13.phx.gbl>
> | <0iJ9ZX$IEHA.308@cpmsftngxa10.phx.gbl>
> | | Subject: Re: COM Profiler problems on Win2003
> | | Date: Fri, 16 Apr 2004 17:36:52 -0500
> | | Lines: 88
> | | X-Priority: 3
> | | X-MSMail-Priority: Normal
> | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | | Message-ID: <#LwsiNAJEHA.624@TK2MSFTNGP09.phx.gbl>
> | | Newsgroups: microsoft.public.dotnet.framework.clr
> | | NNTP-Posting-Host: ip67.tonic.com 216.54.231.67
> | | Path:
> |
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> | .phx.gbl
> | | Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:10287
> | | X-Tomcat-NG: microsoft.public.dotnet.framework.clr
> | |
> | | Yes, ASP.NET uses the user ASPNET under IIS5 and "Network Services"
> under
> | | IIS6, but I have found out a bit more...
> | |
> | | When I reboot the box with Cor_Enable_Profiling=1 then everything
works.
> | |
> | | If I
> | |
> | | 1. Reboot the box with Cor_Enable_Profiling=0 (SYSTEM group)
> | | 2. Set it to 1 after 2003 comes back up (using the System Control
Panel
> | | tool)
> | | 3. Restart the W3SVC service (or directly kill w3wp.exe or use IIS
> Manager
> | | to restart IIS or recycle the Application pools)
> | |
> | | Nothing.
> | |
> | | I can only assume that the w3wp.exe is being launched from a process
> that
> | is
> | | launched in the Service's Windows System (thus it's copy of the envvar
> is
> | 0)
> | | and that "launching process" is not W3SVC (which should get an updated
> | copy
> | | of the envvar when the service is cycled). That make sense?
> | |
> | | Brian
> | |
> | | "Jonathan Keljo [MS]" <jkeljo@online.microsoft.com> wrote in message
> | | news:0iJ9ZX$IEHA.308@cpmsftngxa10.phx.gbl...
> | | > Hmmm...interesting...maybe ASP.NET runs as a different user on 2k3
> than
> | it
> | | > does on 2k? Are your profiler envvars system-wide or just set for
> | | > particular users? Anything in the event log? I don't believe there's
> any
> | | > security restriction at the .NET level on loading the profiler DLL,
> | though
> | | > maybe you should check the ACLs on the DLL itself. (I doubt if it's
> file
> | | > ACL problems though.)
> | | >
> | | > Jonathan
> | | >
> | | > This posting is provided "AS IS" with no warranties, and confers no
> | | rights.
> | | >
> | | > --------------------
> | | > | From: "Brian Tyler" <brianmtyler@yahoo.com>
> | | > | Subject: COM Profiler problems on Win2003
> | | > | Date: Thu, 15 Apr 2004 16:35:16 -0500
> | | > | Lines: 23
> | | > | X-Priority: 3
> | | > | X-MSMail-Priority: Normal
> | | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | | > | Message-ID: <OlXeeGzIEHA.3988@tk2msftngp13.phx.gbl>
> | | > | Newsgroups: microsoft.public.dotnet.framework.clr
> | | > | NNTP-Posting-Host: ip67.tonic.com 216.54.231.67
> | | > | Path:
> | | >
> | |
> |
>
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
> | | > 8.phx.gbl!tk2msftngp13.phx.gbl
> | | > | Xref: cpmsftngxa06.phx.gbl
> microsoft.public.dotnet.framework.clr:10213
> | | > | X-Tomcat-NG: microsoft.public.dotnet.framework.clr
> | | > |
> | | > | I am using the COM Profiler API to hook into the CLR for the
various
> | | > | notifications it provides, specifically in ASP.NET. Everything is
> | | working
> | | > | fine on Win2k but when I try it under Win2k3 I don't get hooked
for
> | | > ASP.NET
> | | > | (i.e., my COM object doesn't seem to be created at all for
> w3wp.exe).
> | I
> | | do
> | | > | get the hooks for the other managed applications on the same
> machine,
> | | just
> | | > | not ASP.NET.
> | | > |
> | | > |
> | | > |
> | | > | My assumption is that it is a security issue in that the ASP.NET
> | process
> | | > is
> | | > | either not being run with sufficient privileges or there is some
> NET
> | | > | security setting needed for the process to allow the COM Profiler,
> but
> | | the
> | | > | things I have tried didn't make a difference.
> | | > |
> | | > |
> | | > |
> | | > | Thoughts?
> | | > |
> | | > |
> | | > |
> | | > | Brian
> | | > |
> | | > |
> | | > |
> | | >
> | |
> | |
> | |
> |
> |
>



Relevant Pages

  • Re: file_exists() with Windows share
    ... I just created a test html page with a ... SMTP and NNTP depend on IIS Admin Service ... investigation to find out just what sort of network user account I'll ...
    (comp.lang.php)
  • RE: IIS automatically start even set to manually start
    ... If you look at the Properties of the IIS Admin service in the Services ... console and check the Dependencies tab, it should tell you what other ... Microsoft Developer Support ...
    (microsoft.public.inetserver.iis)
  • Re: iis / smtp / mail services shutting down unexpectedly??
    ... Seemed to be able to crash our IIS admin continually.... ... my SBS2k3 server IIS Admin service started ... > shutting down unexpectedly. ...
    (microsoft.public.backoffice.smallbiz)
  • exchange and iis not working..
    ... the exchange wont restart becouse the "iis admin service" isnt runing and ... "The IIS Admin Service service terminated with service-specific error ...
    (microsoft.public.windows.server.sbs)
  • Re: Service Dependencies
    ... I have been trying to figure out why the IIS Admin service is "packing up" ... but have not found a good reason as yet. ...
    (microsoft.public.exchange2000.admin)