none
Build error saying Located Assembly manifest definition does not match the assembly refrence RRS feed

  • Question

  • Hi All,

    I am facing a compile error saying "The located assembly's manifest definition does not match the assembly reference". I have used assembly binding log viewer and below is the error from it 

    The operation was successful.
    Bind result: hr = 0x0. The operation completed successfully.

    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
    Running under executable  C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe
    --- A detailed error log follows. 

    === Pre-bind state information ===

    LOG: Where-ref bind. Location = C:\Windows\assembly\GAC_MSIL\Microsoft.Build.Tasks\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Tasks.dll
    LOG: Appbase = file:///C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = NULL
    Calling assembly : (Unknown).
    ===
    WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
    LOG: Start binding of native image Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: IL assembly loaded from C:\Windows\assembly\GAC_MSIL\Microsoft.Build.Tasks\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Tasks.dll.
    LOG: Start validating native image Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: Start validating all the dependencies.
    LOG: [Level 1]Start validating native image dependency System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    LOG: [Level 2]Start validating native image dependency mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    LOG: [Level 2]Start validating IL dependency System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    LOG: [Level 2]Start validating IL dependency System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating native image dependency mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating IL dependency System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating IL dependency System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating IL dependency System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating IL dependency System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating IL dependency System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating IL dependency Microsoft.Build.Framework, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: Dependency evaluation succeeded.
    LOG: [Level 1]Start validating IL dependency Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    LOG: Dependency evaluation succeeded.
    LOG: Validation of dependencies succeeded.
    LOG: Start loading all the dependencies into load context.
    LOG: Loading of dependencies succeeded.
    LOG: Bind to native image succeeded.
    Native image has correct version information.
    Attempting to use native image C:\Windows\assembly\NativeImages_v2.0.50727_32\Microsoft.Build.Tas#\466d901d39d5ea127b2fd185f264d23f\Microsoft.Build.Tasks.ni.dll.
    ZAP: An ngen image of an assembly which is not loaded as domain-neutral cannot be used in multiple appdomains - abandoning ngen image. The assembly will be JIT-compiled in the second appdomain. See System.LoaderOptimization.MultiDomain for information about domain-neutral loading.
    Discarding native image.

    Can some one help me please 

    


    Dont forget to mark as answer if it helps Happy Programming http://dotnethobbyist.blogspot.com

    Friday, August 7, 2015 6:49 PM

Answers

  • Hi Narayan,

    'Located Assembly manifest definition does not match the assembly reference' means could not find the correct version of assembly system trying to use. Have you checked if the assembly has been installed in GAC or copied in app bin folder? http://stackoverflow.com/questions/215026/the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference

    The above method assume the framework is working well, but I suppose framework might be something incorrect. We could do a simple test to check it. Create a new application to see if the problem is persists when building.

    Feel free to let me know if you have any concerns.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, August 10, 2015 2:21 AM
    Moderator