Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN #64

Open
ScottHutchinson opened this issue Nov 22, 2022 · 1 comment

Comments

@ScottHutchinson
Copy link

I'm trying to reference a Nuget package called Combinatorics, which has an assembly that is not strong-named. It has no dependencies. After adding a reference to StrongNamer, the strong name error went away, but I'm still getting the below run-time error, which makes no sense to me. We reference all our Nuget packages in a local repository. Even after adding a binding redirect, I still get the same error. Thank you for your help.

*** Assembly Binder Log Entry  (11/22/2022 @ 8:44:53 AM) ***

The operation failed.
Bind result: hr = 0x80131040. No description available.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Users\hutchinsons\source\dartwin\NG-DART\Source\x64\NG-DART\Debug\Explore.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Combinatorics, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e33b67d3bb5581e4
 (Fully-specified)
LOG: Appbase = file:///C:/Users/hutchinsons/source/dartwin/NG-DART/Source/x64/NG-DART/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = Explore.exe
Calling assembly : Dart, Version=1.4.0.0, Culture=neutral, PublicKeyToken=8f9171b9ba717d8f.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\hutchinsons\source\dartwin\NG-DART\Source\x64\NG-DART\Debug\Explore.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Combinatorics, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e33b67d3bb5581e4
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Users/hutchinsons/source/dartwin/NG-DART/Source/x64/NG-DART/Debug/Combinatorics.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Users\hutchinsons\source\dartwin\NG-DART\Source\x64\NG-DART\Debug\Combinatorics.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: Combinatorics, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
ERR: The assembly reference did not match the assembly definition found.
ERR: Run-from-source setup phase failed with hr = 0x80131040.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
@ScottHutchinson
Copy link
Author

This is basically the same issues as issue #23, to which nobody has responded.😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant