I see this when analyzing my dump file:
0:000> !pe
Exception object: 0000000000ec2228
Exception type: System.IO.FileNotFoundException
Message: Could not load file or assembly 'MyTest.exe' or one of its dependencies. The system cannot find the file specified.
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80070002
How do I find out which assembly could not be loaded? All I have is this dump file and the condition has resolved since the incident so the app is running fine at the moment.
I suggest using DependencyWalker to find out what assemblies are required and compare that to the list of loaded assemblies (lm
).
Unfortunately the FileNotFoundException is not very helpful regarding details.
Note that there may be many reasons for an unresolved dependency (this list is not guaranteed to be complete):
BadImageFormatException
)You can try to get more information
!gle
to get details about the last error. This is a native function, so it may give additional insights on what went wrong before the .NET exception happened.|
to see if it was run from a network share