Failed to load data access DLL, 0x80004005

新年第一篇, 首先祝大家2012身体健康, 工作顺利, 先来篇简单的.

0:031> .load psscor2
0:031> !clrstack
CLRDLL: CLR DLL load disabled
Failed to load data access DLL, 0x80004005
Verify that 1) you have a recent build of the debugger (6.2.14 or newer)
            2) the file mscordacwks.dll that matches your version of mscorwks.dll is
                in the version directory
            3) or, if you are debugging a dump file, verify that the file
                mscordacwks_<arch>_<arch>_<version>.dll is on your symbol path.
            4) you are debugging on the same architecture as the dump file.
                For example, an IA64 dump file must be debugged on an IA64
                machine.

You can also run the debugger command .cordll to control the debugger's
load of mscordacwks.dll.  .cordll -ve -u -l will do a verbose reload.
If that succeeds, the PSSCOR command should work on retry.

If you are debugging a minidump, you need to make sure that your executable
path is pointing to mscorwks.dll as well.
0:031> .cordll -ve -u -l
CLRDLL: Unable to find mscordacwks_AMD64_x86_2.0.50727.3053.dll by mscorwks search
CLRDLL: Unable to find 'mscordacwks_AMD64_x86_2.0.50727.3053.dll' on the path
CLRDLL: Unable to get version info for '\\symbols\files\symwh\MP\v16\Links\Visual_Studio\MISC\netfxsp\8EB9302B-9A56-4235-BB77-A567C9D12634\Sub\binaries\mscordacwks_AMD64_x86_2.0.50727.3053.dll', Win32 error 0n87
CLRDLL: ERROR: Unable to load DLL mscordacwks_AMD64_x86_2.0.50727.3053.dll, Win32 error 0n87
CLR DLL status: ERROR: Unable to load DLL mscordacwks_AMD64_x86_2.0.50727.3053.dll, Win32 error 0n87

遇到上面的问题, 无法运行psscor2中的命令.

解决方案, 正如我加粗的亮点一样.

不要用x64的windbg打开, 改用x86的就OK了.

简单吧? 呵呵.

原文地址:https://www.cnblogs.com/awpatp/p/2311020.html