Re: NProf with ASP.NET

Matthew Mastracci <[email protected]> Fri, 02 Jan 2004 16:19:25 -0700
Newsgroups gmane.comp.windows.dotnet.nprof.devel
Message-ID <[email protected]>
Forwarding your message to the devel mailing list - it may be of use to 
others profiling ASP.NET....

I think I might know what the problem is. You might not have the 
"Environment" key set under 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN or 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC. Can you 
check to see if this is the case?

- If both of those keys are blank, please save the following text as 
"w3svc.reg" and run it.
- If only one is blank, delete the entry from the .reg file that 
corresponds to the non-blank one and run it.
- If neither is blank, I'll need to do more research.

===================================
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC]
"Environment"=hex(7):00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN]
"Environment"=hex(7):00,00
===================================

I can fix this issue in nprof ASAP - I just need to verify that this is 
the case.

Matt.

David Cuddihy wrote:

> Hey – First off, NProf is a great project! There’s a huge need for 
> what you’re doing.
>
> Secondly, I’m having some trouble getting it to talk to ASP.NET. I’m 
> running Windows 2000-SP4, IIS 5.0, and .NET v1.0.3705. Here’s what 
> happened:
>
> 1) I went into my services panel and made sure an IIS-related services 
> were set to use the LocalSystem.
>
> 2) I hit an ASP.NET page to make sure IIS was up and aspnet_wp.exe 
> started;
>
> 3) I then started NProf.Application.exe;
>
> 4) In NProf, I pulled down File?New Project;
>
> 5) On the Create Profiler Project folder I ticked ASP.NET;
>
> 6) I then clicked Create Project;
>
> 7) Then I pulled down Project?Start Project Run and get an Exception 
> (below).
>
> Is there some Registry Key I’m neglecting to set?
>
> Thanks!
>
> -Dave
>
> See the end of this message for details on invoking
>
> just-in-time (JIT) debugging instead of this dialog box.
>
> ************** Exception Text **************
>
> System.ArgumentNullException: Collection cannot be null.
>
> Parameter name: c
>
> at System.Collections.ArrayList..ctor(ICollection c)
>
> at NProf.Glue.Profiler.Profiler.SetRegistryKeys(RegistryKey rk)
>
> at NProf.Glue.Profiler.Profiler.Start(ProjectInfo pi, Run run, 
> ProcessCompletedHandler pch)
>
> at NProf.Glue.Profiler.Project.Run.Start()
>
> at NProf.GUI.ProfilerForm._cmdProjectRun_Click(Object sender, EventArgs e)
>
> at Crownwood.Magic.Menus.MenuCommand.OnClick(EventArgs e)
>
> at Crownwood.Magic.Menus.MenuControl.OperateSubMenu(DrawCommand dc, 
> Boolean selectFirst, Boolean trackRemove)
>
> at Crownwood.Magic.Menus.MenuControl.OnWM_OPERATEMENU(Message& m)
>
> at Crownwood.Magic.Menus.MenuControl.WndProc(Message& m)
>
> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
>
> at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
>
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, 
> IntPtr wparam, IntPtr lparam)
>
> ************** Loaded Assemblies **************
>
> mscorlib
>
> Assembly Version: 1.0.3300.0
>
> Win32 Version: 1.0.3705.288
>
> CodeBase: file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dll
>
> ----------------------------------------
>
> NProf.Application
>
> Assembly Version: 1.0.1461.31450
>
> Win32 Version: 1.0.1461.31450
>
> CodeBase: file:///C:/arc/nprof08/nprof/NProf.Application.exe
>
> ----------------------------------------
>
> NProf.Glue
>
> Assembly Version: 1.0.1461.31449
>
> Win32 Version: 1.0.1461.31449
>
> CodeBase: file:///C:/arc/nprof08/nprof/bin/NProf.Glue.DLL
>
> ----------------------------------------
>
> NProf.GUI
>
> Assembly Version: 1.0.1461.31450
>
> Win32 Version: 1.0.1461.31450
>
> CodeBase: file:///C:/arc/nprof08/nprof/bin/NProf.GUI.DLL
>
> ----------------------------------------
>
> System.Windows.Forms
>
> Assembly Version: 1.0.3300.0
>
> Win32 Version: 1.0.3705.288
>
> CodeBase: 
> file:///c:/winnt/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll
>
> ----------------------------------------
>
> System
>
> Assembly Version: 1.0.3300.0
>
> Win32 Version: 1.0.3705.288
>
> CodeBase: 
> file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
>
> ----------------------------------------
>
> System.Drawing
>
> Assembly Version: 1.0.3300.0
>
> Win32 Version: 1.0.3705.288
>
> CodeBase: 
> file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
>
> ----------------------------------------
>
> MagicLibrary
>
> Assembly Version: 1.7.4.0
>
> Win32 Version: 1.7.4.0
>
> CodeBase: file:///C:/arc/nprof08/nprof/bin/MagicLibrary.DLL
>
> ----------------------------------------
>
> Accessibility
>
> Assembly Version: 1.0.3300.0
>
> Win32 Version: 1.0.3705.0
>
> CodeBase: 
> file:///c:/winnt/assembly/gac/accessibility/1.0.3300.0__b03f5f7f11d50a3a/accessibility.dll
>
> ----------------------------------------
>
> System.Xml
>
> Assembly Version: 1.0.3300.0
>
> Win32 Version: 1.0.3705.288
>
> CodeBase: 
> file:///c:/winnt/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.dll
>
> ----------------------------------------
>
> ************** JIT Debugging **************
>
> To enable just in time (JIT) debugging, the config file for this
>
> application or machine (machine.config) must have the
>
> jitDebugging value set in the system.windows.forms section.
>
> The application must also be compiled with debugging
>
> enabled.
>
> For example:
>
> <configuration>
>
> <system.windows.forms jitDebugging="true" />
>
> </configuration>
>
> When JIT debugging is enabled, any unhandled exception
>
> will be sent to the JIT debugger registered on the machine
>
> rather than being handled by this dialog.
>




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click