Unable to find module 'mscorwks.dll'

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

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 different versions of the FULL .NET framework. Enjoy!!


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