“SOS版本与您调试的CLR版本不匹配"怎么办?在 WinDbg 中? [英] What to do with "The version of SOS does not match the version of CLR you are debugging" in WinDbg?

查看:44
本文介绍了“SOS版本与您调试的CLR版本不匹配"怎么办?在 WinDbg 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的某些应用程序出现问题.这是一个基于 wcf 的应用程序,在 Windows 2003 Server (x86) 的 IIS6 下运行:
在事件日志中,我从W3SVC-WP"源 (EventID=2262) 得到这样一个错误:

I'm having a problem with some of my apps. It's a wcf-based app running under IIS6 in Windows 2003 Server (x86):
In Event Log I get such an error from "W3SVC-WP" source (EventID=2262):

ISAPI 'C:WINDOWSMicrosoft.NETFrameworkv4.0.30319aspnet_isapi.dll' reported itself as unhealthy for the following reason: 'Deadlock detected'.

我正在尝试弄清楚发生了什么.我已经按照此 KB 中的说明设置了为孤儿工作进程创建转储.当发生死锁时,会创建一个小型转储.
然后我使用这个小型转储来尝试了解发生了什么.我被卡住了.

I'm trying figuring out what's going on. I've set up creating dump for Orphan Worker Process as described in this KB. When an deadlock occured a minidump is created.
Then I take this minidump to try to understand what's happened. Here's I'm stuck.

我运行 WinDbg x86,打开我的转储然后:

I run WinDbg x86, open my dump and then:

0:037> .loadby sos clr
0:037> .sympath SRV*c:	empsymbols*http://msdl.microsoft.com/download/symbols
Symbol search path is: SRV*c:	empsymbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:	empsymbols*http://msdl.microsoft.com/download/symbols
0:037> !clrstack
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.1
SOS Version: 4.0.30319.235
CLRDLL: C:WINDOWSMicrosoft.NETFrameworkv4.0.30319mscordacwks.dll:4.0.30319.235 f:8 doesn't match desired version 4.0.30319.01 f:8
CLRDLL: Loaded DLL c:	empsymbolsmscordacwks_x86_x86_4.0.30319.01.dll4BA1D9EF66f000mscordacwks_x86_x86_4.0.30319.01.dll
OS Thread Id: 0x690 (37)
Unable to walk the managed stack. The current thread is likely not a managed thread.
You can run !threads to get a list of managed threads in the process

如何处理这个错误 - SOS 版本与您正在调试的 CLR 版本不匹配"?

What to do with this error - "The version of SOS does not match the version of CLR you are debugging" ?

在 VS2010 中打开小型转储时出现同样的错误(SOS 的版本与您正在调试的 CLR 版本不匹配").

The same error ("The version of SOS does not match the version of CLR you are debugging") I'm getting when I open the minidump in VS2010.

我读过这篇文章 - http://tech-thinker.com/Forums/tabid/62/forumid/12/postid/471/scope/posts/Default.aspx,并尝试安装 KB2518870.它没有帮助.

I've read this post - http://tech-thinker.com/Forums/tabid/62/forumid/12/postid/471/scope/posts/Default.aspx, and tried installing KB2518870. It doesn't help.

推荐答案

WinDbg 将无法使用调试适配器 mscordacwks.dll,除非它与原始机器上的版本相同.您可以通过将此 DLL 从生成转储的目标计算机复制到您的 Windows 调试工具目录来解决此错误.

WinDbg will not be able to use the debugging adapter mscordacwks.dll unless it is the same version as the one from the original machine. You can get around this error by copying this DLL from the target machine which generated the dump to your Debugging Tools for Windows directory.

我们使用 WinDbg 调试 .NET 2.0 应用程序.我们会不断收到关于 mscordacwks_x86_x86_2.0.50727.3615.dll 的相同错误.我必须将此文件从服务器复制到我的客户端,并将其放在 C:Program FilesDebugging Tools for Windows (x86) 文件夹中.在那之后,WinDbg 不再抱怨了.

We debug .NET 2.0 applications with WinDbg. We would continually get this same error regarding mscordacwks_x86_x86_2.0.50727.3615.dll. I had to copy this file from the server onto my client and put it in the C:Program FilesDebugging Tools for Windows (x86) folder. WinDbg stopped complaining after that.

如果所有其他方法都失败了,您可以尝试在检索故障转储的同一台服务器上使用 WinDbg 进行调试.

If all else fails, you can try debugging with WinDbg on the same server from which you retrieved the crash dump.

这篇关于“SOS版本与您调试的CLR版本不匹配"怎么办?在 WinDbg 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆