Loading sos.dll to Windbg

Windbg is still the golden standard to troubleshoot memory dumps. and sos extension is still the essential tool to help with managed memory dump investigation. With .NET Framework (4.8 or earlier), it could be as easy as .loadby sos clr. But things got a little trickier with .NET Core, as you need to install dotnet-sos for the extension, and that could cause some confusions to get it work.

So, the thing is that you can’t (or rather, can’t stop at) install dotnet-sos like this

dotnet tool install -g dotnet-sos

Which will install it in a weird path like this C:\Users\quma.dotnet\tools.store\dotnet-sos\9.0.607501\dotnet-sos\9.0.607501\tools\net6.0\win-x64

And if you run the command to load it like this

.load C:\Users\vimvq\.dotnet\tools\.store\dotnet-sos\8.0.510501\dotnet-sos\8.0.510501\tools\net6.0\any\win-x64\sos.dll

You can’t run any command that you’re used to, like !dumpheap

0:000> !dumpheap 
Error: Fail to create host ldelegate 80070002
Error: ICLRRuntimeHost::ExecuteInDefaultAppDomain failed 80070002
Unrecognized command 'dumpheap'

Why? Because now sos.dll is simply a loader, the commands like !dumpheap is implemented in a different dll that is not in the same folder with sos.dll.

What you want is to install it with

dotnet-sos install

so it will be installed in a path like C:\Users\quma.dotnet\sos

And then you can run .load C:\Users\quma\.dotnet\sos\sos.dll in WinDBG and everything should run as expected. Note that if you run .load command with wrong path before, you need to restart the debugging process. (Press Stop Debugging and Ctrl+D to reload the memory dump.

Best deal on Amazon.se week 10/2025

Assassins Creed Mirage PS5


Reduced to kr199.00

https://amzn.to/4bo19e2

Hultafors 827023 Crowbar, Red

Reduced to kr67.00

https://amzn.to/3QHb30N

Belkin BoostCharge Wireless Magnetic Car Phone Holder Compatible with iPhone 15 14 13 12 Plus Pro Pro Max Mini and More with MagSafe (Cable and Power Supply Adapter Included)

Reduced to kr96.00

https://amzn.to/4btGTYG

Belkin charger for Apple Watch, MFi certified wireless fast charging travel pad with bedside mode

Reduced to kr126.00

https://amzn.to/41nl1cE

Best deals on Amazon.se week 3/2025

Anker MagGo Power Bank, Qi2 Certified 15W MagSafe Compatible Portable Charger, 10.000mAh Battery Pack 

Reduced to kr799.00

https://amzn.to/3Wj6jlb

Soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones Wireless Over-Ear

Reduced to kr399.00

https://amzn.to/4fYN7QX

Regina Chamomile Paper 3-Ply Toilet Paper | 56 Roll Packs 

Reduced to kr250.63

https://amzn.to/3WnvtPP

OXO Good Grip 3-Piece Kitchen Tools & Utensil Set, Swivel Peeler, Can Opener, Whisk [Amazon Exclusive] : Amazon.se: Home & Kitchen

Reduced to kr131

Best deals on Amazon.se week 1/2025

Fjällräven Greenland Winter Jacket, size S

Normally 3999kr, reduced to kr2,363.89

https://amzn.to/4a0wwux

Samsung Galaxy Buds3 Pro

Reduced to kr1,727.08

https://amzn.to/3W6En3P

Kenwood Titanium Chef Baker Silver KVC85.004SI, Kitchen Assistant Food Processor, Integrated Scale, 3 Hook and Beaters for Mixing Stainless Steel and Rubber Beater, Bowls of 5L and 3.5L, 1200W, Silver

Reduced to kr4,058.00

https://amzn.to/3W2qBPV

Fluke Fluke 117 Multimeter, 600 V, Black, Yellow


Reduced to kr3,097.00

https://amzn.to/3ZVMC40

8Bitdo Ultimate C Bluetooth Controller for Switch with 6-axis Motion Control and Rumble Vibration (Pink)

Reduced to kr249.00, and a further 15% if buy 10 qualifying items with Prime membership

https://amzn.to/3BRKi69

Anker Prime Charger, 200W 6-Port GaN Charging Station

Reduced to kr749.00

https://amzn.to/3BMDg2B

Philips Airfryer Combi 7000 Series XXL – 8.3L (2kg), 22-in-1 airfryer (HD9876/90)

Reduced to kr2,499.00

https://amzn.to/4achn9t

Anker 335 67W Charger

Reduced to  kr299.00

https://amzn.to/3BXg3e4

Best deals on Amazon.se week 52/2024

AUDIO TECHNICA AudioT AT2035 Condenser Microphone

Reduced to  kr1,347.43

https://amzn.to/4fwYSxH

Fjällräven Women’s Expedition Parka No.1 W Jacket

Reduced to kr4,884.51

https://amzn.to/406jIzf

Philips Connected AC4236/10 Air Purifier

Reduced to kr2990

https://amzn.to/4fwFQaO

Levi’s herr Jeans 501 Original Fit

Reduced to kr699

https://amzn.to/3ZUD0q6

LG 32GS60QC-B – Ultragear monitor, 32″ QHD, 2560 x 1440, VA panel, 16:9, HDMI, 1 ms, 180Hz, FreeSync

Reduced to kr2,458.00

https://amzn.to/3ZROVoD

Fjallraven Expedition Long Down Parka W Jacket for Women

Reduced to kr4,546.31

https://amzn.to/3ZKjwUY

PC GAMING Aqua PC Gamer – NVIDIA RTX 4060 8G – Watercooling 240mm white – Aqua View XT Case – B760-WIFI – Corsair Vengeance SL 2X8GB DDR4 3600 WH – SSD 1TB PCI 4.0 – Windows 11 Pro

Reduced to kr8,635.64

https://amzn.to/4fAI5JW

Merrell Herr Moab 3 GTX vandringssko

Reduced to kr773.00

https://amzn.to/41Skx0e

PlayStation VR2

Reduced to kr4,697.07

https://amzn.to/3PdiX1b