2012年5月30日水曜日

Windbgで .NETFrameworkのバージョンが違うよと怒られたら

Windbgでダンプファイル解析時にSos.dllを読み込んでコマンドを実行してもエラーになってしまう。。 ダンプファイルを取得したPCの.NETFrameworkのバージョンと 解析時に使っているPCの.NETFrameworkのバージョンが異なっていると起こるみたい。

以下エラー内容


0:000> !threads
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___.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.


【対処】
以下のシンボルファイルのパスに以下を追加して再起動すれば実行できました。

symsrv*symsrv.dll*c:\localcache*http://msdl.microsoft.com/download/symbols

0 件のコメント:

ラベル