这是我第一次对.dmp文件进行调试或执行任何操作。我在用Debugdiag。当我运行我的分析时,我会发现这个错误-
Analysis results may be incomplete because an error occurred while initializing the CLR diagnostic runtime for w3wp.DMP.
Dump File:  w3wp.DMP
Type:  DebugDiag.DotNet.DacNotFoundException
Message:  CLR is loaded in the target, but the correct dac file cannot be found. DacFileName: mscordacwks_Amd64_Amd64_10.0.30319.01.dll. DacLocation: 它说要解决这个问题,我必须这样做:
To fix this problem, you can copy mscordacwks.dll from the server where the dump was taken and rename it to mscordacwks_Amd64_Amd64_10.0.30319.01.dll and add the path of the folder to the Symbol server path by going to Tools-> Options and Settings我做到了,现在我得到了以下错误:
转储文件: w3wp.DMP
类型: Microsoft.Diagnostics.Runtime.ClrDiagnosticsException
消息:未能加载dac: D:\Dumps\mscordacwks_Amd64_Amd64_10.0.30319.01.dll
Stack Trace:
Microsoft.Diagnostics.Runtime.DacLibrary..ctor(DataTargetImpl dataTarget, String dacDll)
Microsoft.Diagnostics.Runtime.DataTargetImpl.CreateRuntime(String dacFilename)
DebugDiag.DotNet.NetDbgObj.CreateRuntimeAndGetHeap(String dumpPath, IDbgObj3 legacyDebugger, String symbolPath, Boolean throwOnBitnessMismatch, Boolean loadClrHeap)
HResult: UnknownError我试过几个链接,其中一个是this。什么都没得到。如何修复这个问题并查看转储文件的整个分析?
发布于 2015-12-01 20:06:00
只有当您在与转储不同的机器上进行分析时,才会得到这个结果。原因很简单,因为使用的是不同版本的mscordacwks.dll。
要修复它,请将mscordacwks.dll从源计算机复制到分析机器,到一个临时目录(而不是%WINDIR%\Microsoft.net目录)。
将复制的mscordacwks.dll重命名为mscordacwks_Amd64_Amd64_10.0.30319.01.dll。
将临时目录添加到调试器分析应用程序中的符号搜索路径。
重新进行分析。
https://stackoverflow.com/questions/23930301
复制相似问题