Extension commands need mscorwks.dll in order to have something to do.的一种情况

今天开发人员提交同一个程序的两个dump文件,运行环境Windows Server 2008 R2、.NET Framework 2.0。当使用WinDbg分析第二个文件时,加载sos执行命令提示如下:

0:000> .load C:\Windows\Microsoft.NET\Framework64\v2.0.50727\sos.dll
0:000> !clrstack
Failed to find runtime DLL (mscorwks.dll), 0x80004005
Extension commands need mscorwks.dll in order to have something to do.

执行lmvm clr发现CLR为4.0,重新加载4.0版本的sos.dll可以解决该问题。

0:000> lmvm clr
start             end                 module name
00000000`71450000 00000000`71abf000   clr        (deferred)             
    Image path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Image name: clr.dll
    Timestamp:        Thu Mar 18 15:44:47 2010 (4BA1D9EF)
    CheckSum:         00671FC0
    ImageSize:        0066F000
    File version:     4.0.30319.1
    Product version:  4.0.30319.1
    File flags:       8 (Mask 3F) Private
    File OS:          4 Unknown Win32
    File type:        2.0 Dll
    File date:        00000000.00000000
    Translations:     0409.04b0
    CompanyName:      Microsoft Corporation
    ProductName:      Microsoft® .NET Framework
    InternalName:     clr.dll
    OriginalFilename: clr.dll
    ProductVersion:   4.0.30319.1
    FileVersion:      4.0.30319.1 (RTMRel.030319-0100)
    PrivateBuild:     DDBLD766
    FileDescription:  Microsoft .NET Runtime Common Language Runtime - WorkStation
    LegalCopyright:   © Microsoft Corporation.  All rights reserved.
    Comments:         Flavor=Retail

补充一下,由于.NET Framework 4.5的安装实际替换了4.0目录下对应的文件,所以4.0以上版本的更新调试存在3个版本,调试时分别需要相应版本的clr.dll、mscordacwks.dll、sos.dl(v4.0.30319.1、v4.0.30319.17929、v4.0.30319.18010)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
When you encounter a "ProxyError: Conda cannot proceed due to an error in your proxy configuration" message, it means that there is an issue with the proxy settings in your Conda configuration. Conda uses the proxy settings to connect to the internet and download packages. To resolve this issue, you can try the following steps: 1. Check your proxy settings: Verify that the proxy settings in your Conda configuration are correct. You can do this by running the following command in your terminal: ``` conda config --show | grep proxy ``` Make sure that the proxy settings displayed are accurate and match your network configuration. 2. Update proxy settings: If you need to update your proxy settings, you can use the following commands to set the proxy configuration for Conda: ``` conda config --set proxy_servers.http <proxy_url> conda config --set proxy_servers.https <proxy_url> ``` Replace `<proxy_url>` with the URL of your proxy server. 3. Remove proxy settings: If you don't require a proxy or want to remove the existing proxy settings, you can use the following commands: ``` conda config --remove-key proxy_servers.http conda config --remove-key proxy_servers.https ``` 4. Set environment variables: In some cases, you may need to set environment variables for your proxy configuration. You can do this by exporting the `HTTP_PROXY` and `HTTPS_PROXY` variables in your terminal: ``` export HTTP_PROXY=<proxy_url> export HTTPS_PROXY=<proxy_url> ``` Replace `<proxy_url>` with the URL of your proxy server. 5. Retry Conda operations: After updating or removing the proxy settings, try running your Conda commands again. The ProxyError should no longer occur if the proxy configuration is resolved. If these steps don't resolve the issue, you may need to consult your network administrator or IT support for further assistance with your proxy configuration.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值