Download MSCORDACWKS.dll from MS doesn't work

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
rplaire
Posts: 5
Joined: Wed Feb 17, 2016 9:05 pm

Download MSCORDACWKS.dll from MS doesn't work

Post by rplaire » Wed Apr 06, 2016 1:52 am

.NET Runtime Version Mismatch_NetMemProfiler_(1466).png
The dump import dialog which allows selection of a matching MSCORDACWKS.dll doesn't appear to ever successfully download the correct version from MS symbol servers. When I use WinDbg's

Code: Select all

.cordll -ve -u -l
command, the correct version is found and downloaded, so we know it is available.
0:000> !sym noisy
noisy mode - symbol prompts on
0:000> .symfix
DBGHELP: Symbol Search Path: cache*;SRV*https://msdl.microsoft.com/download/symbols
...
0:000> .cordll -ve -u -l
CLRDLL: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll:4.6.1055.00 f:8
doesn't match desired version 4.6.1073.00 f:8
SYMSRV: C:\ProgramData\dbg\sym\mscordacwks_x86_x86_4.6.1073.00.dll\56B2832E6b1000\mscordacwks_x86_x86_4.6.1073.00.dll - file not found
SYMSRV: File: mscordacwks_x86_x86_4.6.1073.00.dll
...
SYMSRV: mscordacwks_x86_x86_4.6.1073.00.dll from https://msdl.microsoft.com/download/symbols: 460002 bytes - 0 percentSYMSRV: Waiting for the server to respond to a request.
SYMSRV: Successfully received a response from 0 percentSYMSRV: Waiting for the server to respond to a request.
...
DBGHELP: C:\ProgramData\dbg\sym\mscordacwks_x86_x86_4.6.1073.00.dll\56B281B913d000\mscordacwks_x86_x86_4.6.1073.00.dll - OK
SYMSRV: C:\ProgramData\dbg\sym\SOS_x86_x86_4.6.1073.00.dll\56B2832E6b1000\SOS_x86_x86_4.6.1073.00.dll - file not found
SYMSRV: File: SOS_x86_x86_4.6.1073.00.dll
...
SYMSRV: SOS_x86_x86_4.6.1073.00.dll from https://msdl.microsoft.com/download/symbols: 279666 bytes - 0 percentSYMSRV: Waiting for the server to respond to a request.
...
DBGHELP: C:\ProgramData\dbg\sym\SOS_x86_x86_4.6.1073.00.dll\56B28178c1000\SOS_x86_x86_4.6.1073.00.dll - OK
Automatically loaded SOS Extension
CLRDLL: Loaded DLL C:\ProgramData\dbg\sym\mscordacwks_x86_x86_4.6.1073.00.dll\56B281B913d000\mscordacwks_x86_x86_4.6.1073.00.dll
CLR DLL status: Loaded DLL C:\ProgramData\dbg\sym\mscordacwks_x86_x86_4.6.1073.00.dll\56B281B913d000\mscordacwks_x86_x86_4.6.1073.00.dll
Is there something I'm missing with selecting "Retrieve from Microsoft symbol store"?

Andreas Suurkuusk
Posts: 1010
Joined: Wed Mar 02, 2005 7:53 pm

Re: Download MSCORDACWKS.dll from MS doesn't work

Post by Andreas Suurkuusk » Fri Apr 08, 2016 7:19 am

.NET Memory Profiler retrieves MSCORDACWKS.dll in the same way as WinDbg does. Except that we currently "http" transfer instead of "https". This is something we should change, but I don't think that's what's causing this issue.

This may again be caused by a mismatched "SOS.dll " file. SOS.dll is not downloaded from the Microsoft symbol stores, so if there's a mismatch you must manually specify where to find this file.

In the next version of the profiler we have removed the dependency on SOS.dll and improved how we retrieve the MSCORDACWKS.dll file. Hopefully a beta of the next will be available with a month.
Best regards,

Andreas Suurkuusk
SciTech Software AB

rplaire
Posts: 5
Joined: Wed Feb 17, 2016 9:05 pm

Re: Download MSCORDACWKS.dll from MS doesn't work

Post by rplaire » Mon Apr 11, 2016 1:47 am

I see, I thought SOS.dll would also be downloaded, since WinDbg does this, as can be seen in the log lines:
SYMSRV: SOS_x86_x86_4.6.1073.00.dll from https://msdl.microsoft.com/download/symbols: 279666 bytes - 0 percentSYMSRV: Waiting for the server to respond to a request.
...
DBGHELP: C:\ProgramData\dbg\sym\SOS_x86_x86_4.6.1073.00.dll\56B28178c1000\SOS_x86_x86_4.6.1073.00.dll - OK
Since SOS.dll needs to match the runtime, wouldn't it make sense to download it like MSCORDACWKS.dll?

Andreas Suurkuusk
Posts: 1010
Joined: Wed Mar 02, 2005 7:53 pm

Re: Download MSCORDACWKS.dll from MS doesn't work

Post by Andreas Suurkuusk » Mon Apr 11, 2016 7:49 am

Yes, it would definitely make sense to download sos.dll as well. It's something we planned to implement, but as I mentioned, the dependency on SOS.dll has been removed from the next version of the profiler, so we no longer need to implement the download of SOS.dll.
Best regards,

Andreas Suurkuusk
SciTech Software AB

rplaire
Posts: 5
Joined: Wed Feb 17, 2016 9:05 pm

Re: Download MSCORDACWKS.dll from MS doesn't work

Post by rplaire » Mon Apr 11, 2016 8:12 pm

Ah, now I understand, such a feature would be obviated by not having the SOS dependency. I look forward to the beta!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests