无法查看.NET Framework 1.1的dump文件?
经常看的dump都至少是.net framework 2的dump文件, 冷不丁开一个.net 1.1的dump, 发现问题还挺多.
经过一番摸索, 最后还是成功地查看了这个dump.
解决方案如下:
1. 在debugger所在的机器上安装.net framework 1.1.
2. 在debugger所在的机器上安装.net fraemwork 1.1 SP1
3. 使用.loadby sos mscorwks会报错, 如下:
"Unable to find module 'mscorwks'"
4. 使用下面的命令来加载sos
.load C:\Windows\Microsoft.NET\Framework\v1.1.4322\sos.dll
5. 成功. 运行!clrstack, !dumpstackobjects都没问题了.
注意, psscor2不能用来查看.net framework 1.1的dump文件. 只能用.net 1.1自带的sos.dll.
在加载了psscor2的时候, 使用!clrstack命令会遇到如下的错误
Doesn't work with 1.x 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.
参考资料:
Back to Basics - How do I get the memory dumps in the first place? And what is SOS.dll?
http://blogs.msdn.com/b/tess/archive/2006/01/11/511773.aspx
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律