I have an ASP.net 2.0 application that I am trying to debug live using Windbg and SOS.dll. When I attach the debugger to the process, I see that it is loading versions 2.0 and 4.0 for the CLR. [Mscorwks.dll and CLR.dll]. I load SOS using .loadby sos mscorwks. After that, none of my SOS commands work. I get "Failed to request threadstore", "Unable to retrieve information from the system domain", etc.
I found out that this is due to a mismatch in mscordacwks.dll for another version of the CLR. But all the solutions that I found on google to download the correct version of mscordacwks using the cordll command failed to solve my problem. In particular, I used .cordll -ve -lp, but it doesn't seem to make any difference. After doing the β! Threadsβ combats again, I get
"CLR DLL State: Loaded DLL C: \ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ mscordacwks.dll
Failed to request threadstore "
I saw another entry in stackoverflow around this issue. But fortunately for him, the problem disappeared before a solution was proposed, and this is also not a duplicate of this entry.
Any key that will help me use the SOS header with two versions of the CLR loaded into my process is welcome.
The behavior of loading versions of MSCORDACWKS is as follows:
**0:033>** .cordll -e CLR DLL status: Loaded DLL C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll **0:033>** .cordll -ve -u -lp C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscordacwks.dll CLR DLL status: No load attempts **0:033>** .cordll -e CLR DLL status: No load attempts **0:033>** !threads CLRDLL: Loaded DLL C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll Failed to request ThreadStore
windbg sos
Mallika ravi
source share