简体   繁体   English

VS2015调试中出现错误“找不到mscoreei.dll”

[英]Error “mscoreei.dll not found” in VS2015 debugging

When I'm trying to debug my dump file I get an error: 当我尝试调试转储文件时,出现错误:

mscoreei.dll not found 找不到mscoreei.dll

mscoreei.dll was not found in the minidump. 在小型转储中找不到mscoreei.dll。 You need to load the binary in order to find the source for the current stack frame. 您需要加载二进制文件才能找到当前堆栈帧的源。

I have a project in C# that can hang sometimes on other computer. 我有一个C#项目,有时可以挂在其他计算机上。 Each time as it hangs, 'procdump' app creates minidump file for me. 每次挂起时,“ procdump”应用都会为我创建minidump文件。 Previously, I could normally open this dump file in VS2015, which shows me a stuck place in the source code. 以前,我通常可以在VS2015中打开此转储文件,这向我显示了源代码中的滞留位置。

Everything works fine till I made a 'clean up' in the repository. 一切正常,直到我在存储库中进行了“清理”。 I didn't add any line in the code, I just clean up repository and all my .pdb files were exterminated. 我没有在代码中添加任何行,只是清理了存储库,所有.pdb文件都被清除了。 I build project again to restore .pdb files. 我再次构建项目以还原.pdb文件。 But now as I try to debug dump files, VS2015 shows me page "No Binary Found" with error message written above. 但是现在当我尝试调试转储文件时,VS2015向我显示了页面“ No Binary Found”,上面显示了错误消息。

I didn't make any changes in the source code. 我没有对源代码进行任何更改。 I didn't modify my environment. 我没有修改我的环境。 Debugging stops working as I made repository clean up. 当我清理存储库时,调试停止工作。

When I'm checking 'Stack Frame' list, then evrything that is coming after "mscoreei.dll!7311ffcc" have format "[Frames below may be incorrect and/or missing, no binaries loaded for filename ]". 当我检查“堆栈帧”列表时,“ mscoreei.dll!7311ffcc”之后出现的所有格式都为“ [以下帧可能不正确和/或丢失,没有为文件名加载二进制文件 ]”。

I found the problem. 我发现了问题。 It turns out, that my environment changed. 事实证明,我的环境发生了变化。 From the last build when debugging worked correctly, Windows Update service updated my .NET library. 从上次调试正常运行时的版本开始,Windows Update服务更新了我的.NET库。 As result my new build is using updated .NET files, but dumps are created for old .NET. 结果,我的新版本使用更新的.NET文件,但为旧的.NET创建了转储。 Restoring correct version of .NET helped me. 恢复.NET的正确版本对我有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM