How can I know the CLR version of a crash dump?

后端 未结 3 2059
无人及你
无人及你 2021-01-11 23:04

I have a minidump crashed from a .NET application. Is there any way to know the CLR version (e.g. version of mscorwks.dll) of the fault machine (which generates the crash du

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-11 23:51

    Go verbose in WinDbg:

    >lm v 
    ............. (lots of modules).......
    
    687d0000 68d06000   System_Xml_ni   (deferred)             
    Image path: C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml\38b9d09539b67b08ee996db6c71f8a9b\System.Xml.ni.dll
    Image name: System.Xml.ni.dll
    Has CLR image header, track-debug-data flag not set
    Timestamp:        Mon Oct 06 20:43:49 2008 (48EADAF5)
    CheckSum:         00000000
    ImageSize:        00536000
    File version:     2.0.50727.3074
    Product version:  2.0.50727.3074
    File flags:       0 (Mask 3F)
    File OS:          4 Unknown Win32
    File type:        2.0 Dll
    File date:        00000000.00000000
    Translations:     0409.04b0
    CompanyName:      Microsoft Corporation
    ProductName:      Microsoft® .NET Framework
    InternalName:     System.Xml.dll
    OriginalFilename: System.Xml.dll
    ProductVersion:   2.0.50727.3074
    FileVersion:      2.0.50727.3074 (QFE.050727-3000)
    FileDescription:  .NET Framework
    LegalCopyright:   © Microsoft Corporation.  All rights reserved.
    Comments:         Flavor=Retail
    

    Alternatively, load the dump in Visual Studio and use the Debug | Windows | Modules toolwindow to display some of this info.


    Examples for two different .Net versions, using the version information of clr.dll:

    .Net 4.0(.x?)

    Image name: clr.dll
    Timestamp:        Thu Mar 18 21:39:07 2010 (4BA21EEB)
    ...
    File version:     4.0.30319.1
    Product version:  4.0.30319.1
    

    .Net 4.5.2

    Image name: clr.dll
    Timestamp:        Fri Nov 07 20:09:21 2014 (545CA861)
    ...
    File version:     4.5.27.0
    Product version:  4.0.30319.0
    

提交回复
热议问题