Unable to find module 'mscorwks.dll'

只谈情不闲聊 提交于 2019-12-02 20:08:29
Martin Moser

Don't add the .dll, try just .loadby sos mscorwks

If you are debugging a .NET 4.0 application, you need to use the following instead of mscorwks:

.loadby sos clr

Here is a good overview of the commands available for .NET 4.0. Enjoy!!

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

Also ensure you have correct bitness - trying to do this in 64-bit windbg while debugging 32-bit app will give you the same error.

If you have the .NET framework directory (e.g. c:\Windows\Microsoft.NET\Framework\v2.0.50727) in your path, you can just use

.load sos
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!