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

前端 未结 2 1264
既然无缘
既然无缘 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:58

    Like the answer from Monsignor, for me the solution was to match the bit-ness (64-bit or 32-bit). My minidump was 64-bit so I had to go to the Framework64 folder and run ngen from there and it was fine. I originally got the same ngen error as described here (Invalid header found in native image...E_FAIL) because I was in the Framework folder instead of the Framework64 folder (facepalm).

    However, even though the ngen command worked...the pdb that was generated ultimately was still not accepted by VS 2013 as a matching symbol file, in my scenario.

提交回复
热议问题