I searched and tried a lot of things, but can't get psscor4 to work properly.
When I invoke !threads, I'm always getting
Failed to request ThreadStore
The things I checked are as follows:
- I'm having a .NET 4 application that's compiled for X86 platform
- I'm using Windbg version 6.2.9200.16384, X86 version
- I'm using current psscor4 from Microsoft and it loads properly. I'm loading the X86 version, so that should be fine
- Symbols are loaded from MS Symbol server (command .symfix+, then .reload)
- .cordll shows the following:
CLR DLL status: Loaded DLL C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll
Does anybody have an idea?
The problem is you're debugging .NET 4.5. PSSCOR4 won't work with .NET 4.5. I also suspect that you're running .NET 4.0 on your debugging machine, which would cause your SOS not to work either. In order to debug .NET 4.5, you need .NET 4.5 SOS and/or SOSEX (which works for all versions of .NET 2.0+).