I am debugging the issue of loading the assembly, so I am looking at the merge logs. Sometimes they confuse me because they start by indicating a failure, and then at the end they say that the assembly is loading from where I expect it to load.
What does “Operation Failed” mean, followed by “IL assembly loaded from ...”? Failed to load assembly or failed?
*** Assembly Binder Log Entry (2012-03-16 @ 10:25:14) *** The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Program\MyCorp\MyApplication1.2.0.0\MyApplication.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = VIRTUALXP-63912\XPMUser LOG: DisplayName = MyCorp.MyApplication.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:
I also see this kind of assembly log, even when the program finishes writing can't load file or assembly SomeAssembly or one of its dependencies
. The corresponding assembly is loaded according to a log entry similar to the one above.
Does this mean that the native dependency of the assembly was not found? Do I need to change the log settings to find out which of the original dependencies failed, or is there something else I can do?
source share