2009-12-17 127 views
13
0:025> !pe 
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 SOS 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. 

在corbitgs.exe/32bit + xxxx.exe在64位服務器2003上運行後,xxxx.exe通常會崩潰。我在同一臺機器上獲得了這個轉儲,安裝windbg(x86),但我無法使用SOS。我GOOGLE了這個問題,但找不到工作答案。我使用同一臺機器,爲什麼windbg無法找到它所需要的?無法加載數據訪問DLL,0x80004005

+0

0:025> .cordll -ve -u -l CLR DLL狀態:無負載試圖 0:025> .reload ... DBGHELP:WOW64 - 公共符號 C:\符號\ wow64.pdb \ 8CF620FBD00B4E6B8D103F57D11D79521 \ wow64.pdb .......................警告:mscorjit重疊mscoree ..............警告:wldap32重疊dnsapi ........ ..警告:rasapi32重疊dnsapi ...警告:tapi32重疊rasapi32 。WARNING :rtutils重疊rasman ..............警告:setupapi重疊winsta .... DBGHELP:ntdll - 公共符號 c:\ symbols \ ntdll.pdb \ 7ECDDF018BEF40068136BF66574633B32 \ ntdll.pdb –

+0

與您一樣,在Google搜索後,我找到了一個解決方案。 http://www.eggheadcafe.com/software/aspnet/35257986/newbie-question-about-win.aspx – whunmr

回答

14

問題是無法找到正確版本的mscordacwks.dll。 DLL充當運行時和SOS之間的抽象層,因此它必須對應於運行時的版本。有一個很好的寫這個問題和它的解決方案在這裏http://blogs.msdn.com/dougste/archive/2009/02/18/failed-to-load-data-access-dll-0x80004005-or-what-is-mscordacwks-dll.aspx

請務必遵循重命名DLL的​​建議非常仔細,因爲如果你得到它錯誤,它不起作用,錯誤消息不是很有用imo 。

+14

非常感謝您的幫助。最後,我使用這個命令: 0:025>!加載wow64exts 0:025>!sw 切換到32位模式 這樣做後,我可以使用SOS。 非常感謝:) –

+0

http://chentiangemalc.wordpress.com/2014/04/16/obtaining-correct-mscordacwks-dll-for-net-windbging/#comment-3569這解決了我的問題 – Nick