Reputation: 805
I loaded the minidump file into Visual Studio 2010, loaded all they symbols, both from my program folder and the Microsoft Symbol Server, then I chose "Debug Native Only" and the program ran up to where it crashed with the same error as displayed on the remote computer when the exe crashed.
Now an error "program.exe not found" and "program.exe was not found in the minidump. you need to load the binary in order to find the source for the current stack frame"
When I click on 'Browse and find program.exe', I select it but VS won't open it?
Upvotes: 11
Views: 9684
Reputation: 1
I know this is old, and the solution I found is dumb, but would help someone who is stuck. This issue is still seen on latest VS 2019.
So, the trick is to use the "Browse and find the *.dll" link, open the folder where your binary is located. Copy the binary and in the same window, paste it to a different location on your computer. Now click "Open". It should load the binary and show you the callstack!
Got help from this thread - https://social.msdn.microsoft.com/Forums/vstudio/en-US/81681f0f-42ac-469f-85bc-cb85b8771e60/cant-load-executable-to-go-with-crash-mini-dump?forum=vsdebug
Upvotes: 0
Reputation: 8725
This dialog "Browse and find ..." tells us two important bits of information:
At the same time, it is silent about two more facts:
it is looking for a exename.pdb / dllname.pdb in the same directory
it checks for an exact (size and timestamp) match in the binary and does not bother to tell, the "Open" button just idles.
As soon as you pick the file it asks for, put it in the direcory it looks at, and add the corresponding pdb file, it will definitely work. Only be 100% sure the dll/exe/pdb combination you offer to the debugger is the very same one that was running at the time the minidump was created.
Upvotes: 11