question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load PhoneNumbers.dll in signed assembly

See original GitHub issue

When depending on PhoneNumbers.dll through NuGet in a project producing a strong name signed assembly this exception is thrown each time PhoneNumbers.dll would be used: System.IO.FileLoadException: Could not load file or assembly 'PhoneNumbers, Version=8.8.10.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) File name: 'PhoneNumbers, Version=8.8.10.0, Culture=neutral, PublicKeyToken=null'

This can be fixed by strong name signing PhoneNumbers.dll see PR #51

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
monty241commented, May 16, 2023

Please note that the author of the second link had second thoughts later in 2018:

https://www.pedrolamas.com/2018/09/11/start-strong-naming-your-assemblies/

2reactions
twccleggcommented, Feb 1, 2018

This has been brought up a few times. https://github.com/twcclegg/libphonenumber-csharp/issues/18, https://github.com/twcclegg/libphonenumber-csharp/issues/48 and that which it references https://github.com/octokit/octokit.net/issues/405 Given that it has come up a few times now I’m going to take another look at it and make sure it don’t cause issue for any existing users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load dll after it was signed
1 Answer 1 ... Most likely thing is your applications previously were using another version of the dll that had been "slyly" copied...
Read more >
Could not load file or assembly 'sapnco_utils.dll' or one of ...
If you see the below error when uploading data from the beacon, it suggests Microsoft Visual C++ redistributable is missing from the device....
Read more >
#22459 Can not use postsharp with signed DLL's
I am getting the error below if i try to use postsharp with a project that is signed, I have delay signing enabled....
Read more >
Error: Could not load file or assembly 'AWSSDK' or one of ...
Open the /bin/Providers subfolder of the site folder. Right-click the AWSSDK.DLL file and select Properties. Within the pop-up dialog, switch ...
Read more >
Does Twilio provide a strong-named assembly of the C# ...
You can "un-sign" the code library project that uses the Twilio assembly. This should resolve any errors, but you will not have a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found