What is this Fusion log saying?

I am debugging an assembly loading problem, so I'm looking through fusion logs. Sometimes they confuse me because they begin with indicating a failure, then in the end they say the assembly loads from where I expect it to be loaded.

What does "The operation failed" followed by "IL assembly loaded from..." really mean? Did it fail to load the assembly, or did it succeed?

*** 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=, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:///C:/Program/MyCorp/MyApplication1.2.0.0/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = MyApplication.exe Calling assembly : MyApplication, Version=, Culture=neutral, PublicKeyToken=null. === LOG: Start binding of native image MyCorp.MyApplication.Core, Version=, Culture=neutral, PublicKeyToken=null. WRN: No matching native image found. LOG: IL assembly loaded from C:\Program\MyCorp\MyApplication1.2.0.0\MyCorp.MyApplication.Core.dll.

I also see this kind of log for an assembly even when the program exits stating can't load file or assembly SomeAssembly or one of its dependencies. The assembly in question is loaded according to a log entry similar to the above.

Would this indicate that a native dependency of the assembly was not found? Do I need to change the log settings to see which native dependency failed, or is there something else I can do?

-------------Problems Reply------------

I think it's because the CLR makes some attempts searching the dll so it firstly fail and then Succed. you can bind to the assemblyresolve event and have a look on how it works. if I Remember it search first in the gac then local folder then subfolders...


Category:.net Views:0 Time:2012-03-16

Related post

  • Assembly binding error - fusion log and dependency browser mismatch 2010-11-16

    I'm chasing down an assembly loading/binding error that has popped up recently. During my investigation I've found a confusing contradiction (assuming I'm parsing the fusion log correctly). The exception that is thrown by my application at startup st

  • Alternative to Fusion Log Viewer? 2011-08-08

    Are there any alternative Fusion Log Viewer programs, other than Fuslogvw.exe, or directing the Fusion log output to your own directory and then examining the tons of HTM files by hand? My two main gripes are: I'd like an overview that showed which a

  • Solving Assembly not Found | FileNotFoundException | Fusion Log 2010-12-30

    I am trying to deploy my solution package (wsp) to SharePoint 2007 environment. The WSP contains a feature which loads the feature receiver class to deploy a timer job at run time. While deploying this WSP, I am consistently getting Feature 'fb631f6c

  • How to enable assembly bind failure logging (Fusion) in .NET 2008-11-01

    How do I enable assembly bind failure logging (Fusion) in .NET? --------------Solutions------------- Add the following values to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion Add: DWORD ForceLog set value to 1 DWORD LogFailures set value to 1 DWORD Lo

  • How can I get a fusion binding log on a host that does not have it enabled? 2009-12-28

    I'm trying to run an Asp.net MVC 1 app on a host that doesn't support MVC per this post but does support .net 2,3,3.5 However the error message I get back doesn't tell me much: Server Error in '/assetmanagement' Application. Configuration Error Descr

  • log4net not logging and throwing error 2011-08-17

    I have been using log4Net to write in a text file when there is any exception in my web service, this was working but today it started to throw error. System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.T

  • Is there anything like Assembly Binding Log Viewer on Windows Azure? 2011-08-26

    Is there anything like Assembly Binding Log Viewer (Fusion Log Viewer) on Windows Azure? How can I watch log for assemblies which are using now on Windows Azure? --------------Solutions------------- If you can RDP to the instance, then you can use th

  • Debug visualizer - the visualizer dll can't be loaded 2008-08-29

    I am learning to write a debug visualizer in vs2008 C#. But keep getting the error saying that MyDebugVisualizer dll can't be loaded when I am in debug mode and click the magnifying glass icon. My app project is referencing the visualizer project. Be

  • Adding extra information to a custom exception 2008-09-07

    I've created a custom exception for a very specific problem that can go wrong. I receive data from another system, and I raise the exception if it bombs while trying to parse that data. In my custom exception, I added a field called "ResponseData", s

  • What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion? 2008-09-15

    There are three assembly version attributes. What are differences? Is it ok if I use AssemblyVersion and ignore the rest? MSDN says: AssemblyVersion: Specifies the version of the assembly being attributed. AssemblyFileVersion: Instructs a compiler to

  • In .NET is there a way to enable Assembly.Load tracing? 2008-10-02

    In .NET is there a way to enable Assembly.Load tracing? I know while running under the debugger it gives you a nice message like "Loaded 'assembly X'" but I want to get a log of the assembly loads of my running application outside the debugger, prefe

  • Why isn't my custom WCF behavior extension element type being found? 2008-10-03

    I have a solution that contains two projects. One project is an ASP.NET Web Application Project, and one is a class library. The web application has a project reference to the class library. Neither of these is strongly-named. In the class library, w

  • How do I resolve "%1 is not a valid Win32 application"? 2008-10-08

    Environment: Windows Server 2003 R2 Enterprise 64bit, SP2 .NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1) I say "supposedly" because they are listed as installed under Add/Remove programs. I'm not sure it's properly installed, beca

  • How do I determine the dependencies of a .NET application? 2008-10-22

    Does Dependency Walker work with managed apps? I've downloaded the latest and tried profiling the app, but it just exits without much of an explanation. If it doesn't work with .NET, then is there some other tool that would help me debug a run-time D

  • Shadow Copying, and mixed C# and C++ DLLs loading from arbitrary folders 2008-11-07

    I have a VS 2005 C# project that uses a special Plugin folder to load extra DLLs (for use as nodes in an asset conversion process). I have a mixture of C# and C++ DLLs in this folder. The issue I have is that when Shadow Copying is enabled, the C++ D

  • Strange Error - CS0012: The type x is defined in an assembly that is not referenced 2008-11-12

    The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'abc123'. I have a .NET 2.0 web application that references my assembly 'abc123'. The assembly exists in the GAC and I've verified that it is the corr

  • How do I troubleshoot "Unable to load DLL-"? 2008-12-04

    I deployed an update to my ASP.NET application and started seeing this error on my page that used foo.dll: Unable to load foo.dll. The specified module could not be found. (Exception from HRESULT: 0x8007007E) foo.dll is in my system32 and application

  • System.IO.FileLoadException 2008-12-09

    I have got this error when using Enterprise Library 3.1 May 2007 version. We are developing a product and have a common lib directory beneath the Subversion Trunk directory <>\Trunk\Lib\ into which we put all the third party DLLs. Inside this w

  • Debugging an AmbiguousMatchException thrown when calling AppDomain.CreateInstanceAndUnwrap in .NET 2009-01-07

    I have an application which is throwing an AmbiguousMatchException when I call AppDomain.CreateInstanceAndUnwrap to instantiate a type in another AppDomain. This is happening on a customer's computer which I don't have direct access to. I think the p

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.065 (s). 11 q(s)