How to get the PDB file for mscorlib.ni.lib (.Net Framework 3.5)

前端 未结 2 1266
既然无缘
既然无缘 2021-01-17 23:20

After doing a lot of search, I still couldn\'t get the solution for the question.

I have a mdmp file. The call stack shows it is using mscorlib.ni.dll. So to get the

2条回答
  •  再見小時候
    2021-01-17 23:46

    I had the same error message until I realized I call ngen.exe from the Framework64 folder. Apparently, the mscorlib.ni.dll was not 64-bit.

    So I used the 32-bit version of ngen.exe from the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319 and it successfully produced the PDB.

    However, the path to your mscorlib.ni.dll includes ...\NativeImages_v2.0.507 7_64\..., which indicates it is 64-bit, so this might be a different issue.

提交回复
热议问题