Unable to find module 'mscorwks.dll'

前端 未结 5 775
既然无缘
既然无缘 2021-02-01 03:12

I try to use the winDBG to debug a dump file. When I run .loadby sos mscorwks.dll

It gave me an error message. Unable to find module \'mscorwks.dll\'

Has anyone

5条回答
  •  梦毁少年i
    2021-02-01 04:06

    I had this issue as well and it turned out to be because the debugger was breaking into the app before the CLR was loaded. I had to let the app run throug further before I could do much of anything.

    Doing this in windbg might help:

    sxe ld:mscorlib
    g
    (... breaks again ...)
    .loadby sos mscorwks
    

    The 'sxe ld:..' stops on module load.

    As Sixto mentions, if you are debugging dotnet 4 apps you'll need to replace the last line with

    .loadby sos clr
    

提交回复
热议问题