2012-05-15 35 views
2

我試圖在Windows 7 x64上調試.NET 4 32位(在項目選項中明確設置)WinDbg應用程序步驟如下:Windows 7 x64上的WinDbg x86 .NET 4應用程序:無法加載數據訪問DLL,0x80004005

  • 開始我的應用程序(讓它成爲foo.exe的)上WINDBG.EXE
  • 附加到foo.exe的
  • 開始x86版
  • .loadby SOS CLR
  • ! dumpheap -stat

後,我得到這樣的:

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 clr.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. 

有什麼不對? 我搜查了很多..這個問題看起來是關於內存轉儲:Failed to load data access DLL, 0x80004005 但我試圖調試正在運行的應用程序。

+0

您鏈接到的問題是相同的問題。請參閱第2點。你有沒有安裝.NET 4.5? – leppie

+1

另外,假設你有windbg> = v6.2.14? – Iridium

回答

3

的DAC是SOS用來傾訴的管理運行時層。如果由於某種原因無法找到正確的版本(或者如果您的調試器過時),您會看到此消息。如果您執行.cordll -ve -u -l,則可以獲得關於它嘗試加載的版本的更多信息,並且應該能夠從那裏進行故障排除。

相關問題