Re: COM Profiler problems on Win2003
From: Brian Tyler (brianmtyler_at_yahoo.com)
Date: 04/20/04
- Next message: Robert Gruen [MSFT]: "RE: vb.net strong names"
- Previous message: Kerr: "vb.net strong names"
- In reply to: Jonathan Keljo [MS]: "Re: COM Profiler problems on Win2003"
- Messages sorted by: [ date ] [ thread ]
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
> | | > |
> | | > |
> | | > |
> | | >
> | |
> | |
> | |
> |
> |
>
- Next message: Robert Gruen [MSFT]: "RE: vb.net strong names"
- Previous message: Kerr: "vb.net strong names"
- In reply to: Jonathan Keljo [MS]: "Re: COM Profiler problems on Win2003"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|