Answered CLRProfiler issue on Log File

  • 29 กุมภาพันธ์ 2555 10:51
     
     

    Hello,

    I'm not able to correctly use CLRProfiler v4.0 on Win7 64 bit, profiling a C# application developed with .NET framework 3.5. In particular I'm not able to find *.log file, and so it is not enabled the wiew sub menus.

    I copy the profiler in the directory of the app that I want to profile, register the dll (regsvr32 ProfilerOBJ.dll), run the CLRProfiler as administrator....but the log file is not present in the default directory (c:\WINDOWS\TEMP) or in another folder that I choose.

    Any suggestions?

    Thank you in advance for the support!

    Andrea

ตอบทั้งหมด

  • 2 มีนาคม 2555 7:22
    ผู้ดูแล
     
     

    Hi Andrea,

    Welcome to the MSDN Forum.

    Where do you get your CLRProfile? Is it a Microsoft official site?

    Anyway, please take a look at this article: http://msdn.microsoft.com/en-us/library/ff650691.aspx 

    It provides the download links and general ways about how to use CLR Profile. I hope this will be helpful.

    >> In particular I'm not able to find *.log file

    When you lunched an application, and do what you want, and then, you kill the application, you can save the log file manaully from the "File" menu: 

    And by default, if you don't save the log, this tool will pop up a dialog to ask you to save it.

    In addition, since you are looking for an answer, so I change the thread type to question. 

    Best regars,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


  • 5 มีนาคม 2555 9:27
     
     

    Hi Mike,

    thank for your reply.

    I downloaded the official v.4 version of CLR Profiler. With this version seem not to be compatible with the prevoius framework version. The Kill button is disabled as the Save As button.

    However I also try the versione reachable to the link proposed.

    After start the app. a dialog appears (waiting for the application to start common language runtime), and never disappear....

    If I cancell the operation, and kill the application an unhandled exception is thrown:

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

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at CLRProfiler.Form1.checkProcessTimer_Tick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    CLRProfiler
        Assembly Version: 1.0.1395.16737
        Win32 Version: 1.0.1395.16737
        CodeBase: file:///C:/Program%20Files%20(x86)/Siemens/SIT/BIN/CLRProfiler.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (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 computer
    rather than be handled by this dialog box.


     

    Any ideas?

    Andrea

  • 5 มีนาคม 2555 11:26
    ผู้ดูแล
     
     คำตอบ

    Hi Andrea,

    Based on your description, it seems that your program didn't work will, so please try to improve your programs, but it is different question from your original one in this thread. 

    >>The Kill button is disabled as the Save As button. 

    When you didn't start an application, both the two buttons is indeed disabled. So please load an application and try again.

    And when you use this tool, which version do you start? The Binaries one or the Sources one? In my test, I use the Binaries one, and both 32 and 64.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • 7 มีนาคม 2555 12:57
    ผู้ดูแล
     
     

    Hi Andrea

    Do you have any update?

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • 10 มีนาคม 2555 10:43
     
     คำตอบที่เสนอ

    Hi Andrea,

    To get rid of above exception, please "enable unmanaged code debugging" under project properties and try. I hope, it will help you.


    Regards, http://shwetamannjain.blogspot.com

    • เสนอเป็นคำตอบโดย Shweta Jain 10 มีนาคม 2555 10:43
    •