The fusion downloader cannot find the dll that is actually there

Does anyone know what can make a Fusion bootloader just skip a DLL without warning or confirmation?

When I try to do this (in C #) from a command line application

Assembly.LoadFrom("c:\\Deploy\\bin\\WebServices.dll")

I see it:

"Cannot load one or more of the requested types. For more information, find the LoaderExceptions property."

This DLL has a dependency on Platform.DLL, but this dependency is not loaded, so this line of code throws an exception. When I check the Fusion build load message, this is what I see:

=== Pre-bind state information ===
LOG: DisplayName = Platform, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = null (Fully-specified)

...

LOG: This bind starts in LoadFrom load context.
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: No application configuration file found.
LOG: Using machine configuration file from C: \\ Windows \\ Microsoft.NET \\ Framework64 \\ v2.0.50727 \\ config \\ machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file: /// C: /Project/bin/Debug/Platform.DLL.
LOG: Attempting download of new URL file: /// C: /Project/bin/Debug/Platform/Platform.DLL.
LOG: Attempting download of new URL file: /// C: /Project/bin/Debug/Platform.EXE.
LOG: Attempting download of new URL file: /// C: /Project/bin/Debug/Platform/Platform.EXE.
LOG: Attempting download of new URL file: /// c: /Deploy/bin/Platform.DLL.
LOG: Attempting download of new URL file: /// c: /Deploy/bin/Platform/Platform.DLL.
LOG: Attempting download of new URL file: /// c: /Deploy/bin/Platform.EXE.
LOG: Attempting download of new URL file: /// c: /Deploy/bin/Platform/Platform.EXE.

The fact is that the DLL is present in c:\Deploy\bin\Platform.DLL, with the correct version and without a signed public key.

, :
1. , Platform.DLL , ? ( Reflector, DLL)
2. , / 64- 32-?
3. , , , DLL? "", "" . , - .

PS :
- 64- Windows 2008 .NET 2.0, 3.0 3.5.
(32- Vista) DLL,

+3
1

, , DLL, " ..." ...

? Debug, , ,

  • dll
  • .config

    <dependentAssembly>
        <assemblyIdentity name="WebServices.dll" publicKeyToken="<whatever this public key it>" />
        <codeBase version="1.0.0.0" href="..\WebServices.dll" />
    </dependentAssembly>
    
  • , GAC.

, .

+1

Source: https://habr.com/ru/post/1717974/


All Articles