Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / November 2003

Tip: Looking for answers? Try searching our database.

.NET CLR Proflier 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ajay - 10 Nov 2003 06:53 GMT
Hi All,
I have been unable to proflile any ASP.NET application using the CLR
Profiler 2.0. It  pops up a form and listens to the aspnet requests but no
matter how many asp.net applications I start (using IE) it is not able to
connect to any of them.

Has anybody encountered similar problems ? Is there some setting I am
missing ?

TIA,
Ajay
Peter Sollich [MSFT] - 13 Nov 2003 23:00 GMT
Hi Ajay,

this problem is often cured by running ASP.NET under
the "SYSTEM" account rather than the "machine" account.
This is less secure, however, so be sure to revert to
the "machine" account when done profiling.

This posting is provided "AS IS" with no warranties, and
confers no rights.

Please do not send e-mail directly to this alias. This
alias is for newsgroup purposes only.

Thanks
Peter
>-----Original Message-----
>Hi All,
[quoted text clipped - 10 lines]
>
>.
xxrj43 - 14 Nov 2003 23:04 GMT
While we are at it Peter  -

I am successfully using the application to profile asp.net applications. Not
only with the SYSTEM account, but also with user accounts that have
administrator (and perhaps "act as part of the operating system") rights.

What I would like to know is:

1. Any comments on its use with multiple asp.net apps on the same box? i.e.
both a web app and a web service running on the same machine. I get the
feeling it works by first come first server principle.

2. I can't get the histogram by age to work. But then, that didn't work for
the version on gotdotnet either, so it might be a problem on my end.
I am running WinXP with both fw 1.0 and 1.1 installed (it seems to be using
the 1.0 fw - but that might have to do with my asp.net app). I had this
issue with both asp.net and winforms apps.

The error is reported as follows, just after the window opens (but with big
crossed out windows inside:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
  at System.Number.ParseDouble(String s, NumberStyles style,
NumberFormatInfo info)
  at System.Double.Parse(String s, NumberStyles style, IFormatProvider
provider)
  at System.Double.Parse(String s)
  at CLRProfiler.AgeHistogram.GetTimeScale(Double suggestedScale)
  at CLRProfiler.AgeHistogram.Init(Graphics g)
  at CLRProfiler.AgeHistogram.typeLegendPanel_Paint(Object sender,
PaintEventArgs e)
  at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
  at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
  at System.Windows.Forms.Control.WmPaint(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.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:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
CLRProfiler
   Assembly Version: 1.0.1395.16737
   Win32 Version: 1.0.1395.16737
   CodeBase: file:///c:/CLR%20Profiler/Binaries/CLRProfiler.exe
----------------------------------------
System.Windows.Forms
   Assembly Version: 1.0.3300.0
   Win32 Version: 1.0.3705.288
   CodeBase:
file:///c:/windows/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:/windows/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:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
   Assembly Version: 1.0.3300.0
   Win32 Version: 1.0.3705.288
   CodeBase:
file:///c:/windows/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.

> Hi Ajay,
>
[quoted text clipped - 29 lines]
> >
> >.
Peter Sollich [MSFT] - 19 Nov 2003 10:56 GMT
Right, it's just a question of the profiled process
having sufficient privilege. The "machine" account
ASP.NET uses by default has low privileges for security
reasons, which causes profiling problems on some machines.

1. I can't really comment on this from first hand
experience, but I think that if the applications are
running in separate worker processes, then yes, the first
process to start up a CLR will win and be profiled. If
they are running in the same process, they'll both be
profiled.

2. Seems like you are using a non-US version of the CLR.
I screwed up here by using Double.Parse, which is culture
dependent. You should be able to fix this in the source
code (AgeHistogram.cs) by looking for Double.Parse and
replacing it by Convert.ToDouble(rb.Text,
CultureInfo.InvariantCulture). Rebuild the tool and you
should be fine.

Thanks
Peter

This posting is provided "AS IS" with no warranties, and
confers no rights.

Please do not send e-mail directly to this alias. This
alias is for newsgroup purposes only.

Thanks
Peter

>-----Original Message-----
>While we are at it Peter  -
[quoted text clipped - 132 lines]
>
>.
Dru Sellers - 19 Nov 2003 13:52 GMT
I feel silly, but how do you make the ASPNET process run
as SYSTEM?

>-----Original Message-----
>Hi Ajay,
[quoted text clipped - 32 lines]
>>
>.
Sebastien Lambla - 19 Nov 2003 14:08 GMT
You change the machine.config file in your aspnet folder (somehwere under
\winnt\Microsoft .net) and change the credentials there.

Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

> I feel silly, but how do you make the ASPNET process run
> as SYSTEM?
[quoted text clipped - 36 lines]
> >>
> >.
Dru Sellers - 19 Nov 2003 19:40 GMT
there seem to be quite a large amount of options in
there. Could you help me figure out what I am looking
for? Something I can ctrl-f would be best.
>-----Original Message-----
>You change the machine.config file in your aspnet folder (somehwere under
>\winnt\Microsoft .net) and change the credentials there.

écrit dans le message
>de news: 04ad01c3aea4$6d69ddb0$a001280a@phx.gbl...
>> I feel silly, but how do you make the ASPNET process run
[quoted text clipped - 39 lines]
>
>.
Sebastien Lambla - 20 Nov 2003 10:10 GMT
Here's the KB (I cannot stress it out enough, google is your friend)

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/s
upport/kb/articles/q317/0/12.asp&NoWebContent=1


Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

there seem to be quite a large amount of options in
there. Could you help me figure out what I am looking
for? Something I can ctrl-f would be best.
>-----Original Message-----
>You change the machine.config file in your aspnet folder
(somehwere under
>\winnt\Microsoft .net) and change the credentials there.

?crit dans le message
>de news: 04ad01c3aea4$6d69ddb0$a001280a@phx.gbl...
>> I feel silly, but how do you make the ASPNET process
run
>> as SYSTEM?
>>
[quoted text clipped - 3 lines]
>> >this problem is often cured by running ASP.NET under
>> >the "SYSTEM" account rather than the "machine"
account.
>> >This is less secure, however, so be sure to revert to
>> >the "machine" account when done profiling.
>> >
>> >This posting is provided "AS IS" with no warranties,
and
>> >confers no rights.
>> >
[quoted text clipped - 6 lines]
>> >>Hi All,
>> >>I have been unable to proflile any ASP.NET
application
>> >using the CLR
>> >>Profiler 2.0. It  pops up a form and listens to the
>> >aspnet requests but no
>> >>matter how many asp.net applications I start (using
IE)
>> >it is not able to
>> >>connect to any of them.
[quoted text clipped - 12 lines]
>
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.