c# - WinDbg:SOS.dll x86 4.0.30319.237 的副本

标签 c# .net debugging windbg sos

我正在使用 WinDbg 查看进程转储。转储已在具有 .NET 4 SP1 (4.0.30319.237) 的 x86 服务器上进行。我正在尝试使用 x86 版本的 WinDbg 在我的 x64 机器上进行调试,但我遇到了以下问题。

0:000> !EEVersion
The version of SOS does not match the version of CLR you are debugging.  Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 4.0.30319.237
SOS Version: 4.0.30319.239
4.0.30319.237 retail
Workstation mode
SOS Version: 4.0.30319.239 retail build

由于我的机器安装了最新的安全补丁,SOS DLL 文件现在的版本是 4.0.30319.239,所以我无法在 WinDbg 中使用任何 CLR 扩展。我已连接到 Microsoft 符号服务器并获得正确版本的 mscordacwks.dll

从哪里可以获得 SOS.dll 版本 4.0.30319.237 的副本?

我在线获得的最佳匹配是通过 Reliability Update 1 for the .NET Framework 4 。但是,这不能安装在我的机器上(而且我没有第二台),因为它已经被取代了。

噩梦!

最佳答案

我的情况几乎相同。

0:000> !EEVersion
The version of SOS does not match the version of CLR you are debugging.  Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 4.0.30319.235
SOS Version: 4.0.30319.239
4.0.30319.235 retail
Workstation mode
SOS Version: 4.0.30319.239 retail build

我已经下载并使用了 psscor4,它没有提示,堆栈看起来很合理

0:000> !psscor4.EEVersion
4.0.30319.235 retail
Workstation mode
SOS Version: 4.0.0.4 retail build
0:000> !psscor4.DumpStack
OS Thread Id: 0x874 (0)
Current frame: ntdll!KiFastSystemCallRet
ChildEBP RetAddr  Caller,Callee
002ec6c8 77d16a24 ntdll!NtWaitForSingleObject+0xc 
002ec6cc 758e6f0f mswsock!SockWaitForSingleObject+0x1ba , calling        ntdll!NtWaitForSingleObject
002ec70c 758e65cc mswsock!SockDoConnectReal+0x2c3 , calling    mswsock!SockWaitForSingleObject
002ec77c 71a63267 clr!GetCompileFlags+0x144 , calling clr!_EH_epilog3
002ec780 76ee2f7d ws2_32!WahReferenceContextByHandle+0x63 
002ec7a4 758e5fac mswsock!SockDoConnect+0x3a1 , calling mswsock!SockDoConnectReal
002ec7e4 76a82c6a kernel32!FlushInstructionCache+0x18 , calling     ntdll!ZwFlushInstructionCache

你可以试试看!

关于c# - WinDbg:SOS.dll x86 4.0.30319.237 的副本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8417431/

相关文章:

C# - 使用 Guid 参数引发事件的单元测试方法

c# - 这两个语句(asp.net/c#/entity框架)有什么区别

.net - XSD : Could not find schema information for the element 的 XML 验证

debugging - Firefox 开发工具 : How to persist calls in network analysis

c# - 如何为 KeyValuePair<string,string> 类型的属性创建自定义 MVC3 模板或 HTML 帮助程序

c# - 如何将 Interval 转换为 NodaTime 中的 LocalDate 范围?

c# - 如何允许远程连接到我的 .net 应用程序?

安卓/java/src/pcf : No such file or directory

java - Eclipse: 正在调试...然后似乎停在了一个while循环中,没有调试以下代码,为什么?

c# - 未找到 Clickonce 部署外部 dll 引用