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.

System.Io.FileLoadException: BCrypt.Net-Next

See original GitHub issue

With the update of netcore 3.0 to version v3.0.0-rc1 BCrypt.Net-Next gives sometimes this error:

Unhandled Exception: System.IO.FileLoadException - System.IO.FileLoadException: Could not load file or assembly 'BCrypt.Net-Next, Version=, Culture=neutral, Publi
cKeyToken=1e11be04b6288443'. An operation is not legal in the current state. (0x80131509)
File name: 'BCrypt.Net-Next, Version=, Culture=neutral, PublicKeyToken=1e11be04b6288443'
 ---> System.InvalidOperationException: AssemblyLoadContext is unloading or was already unloaded.
   at System.Runtime.Loader.AssemblyLoadContext.VerifyIsAlive()
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at AltV.Net.Host.ResourceAssemblyLoadContext.Load(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
   at Services.ConnectService.GetAccountByCredentialsAsync(String username, String password)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

Revyn112commented, Sep 23, 2019

Hi Chris,

we found out, that the problem is not related to BCrypt itself 😄 but thanks for your fast answer and netcore 3 support!


ChrisMcKeecommented, Sep 23, 2019

Cool; the type of exception seemed unlikely to be related, but hell you never know with a major release. On the upside you pushed me to sort the netstandard 2.1 bit 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# Nuget assemblyname?
I code a Login so i need to Hash my Password whit BCrypt. I use the Nuget Package for BCrypt.Net-Next. i Follow the...
Read more >
FileLoadException Class (System.IO)
Represents the error that occurs when a Assembly file is found but cannot be loaded. The FileNotFoundException exception is thrown when the file...
Read more >
BCrypt.Net-Next 4.0.3
A fixed, enhanced and namespace compatible version of BCrypt.Net port of jBCrypt implemented in C#. It uses a variant of the Blowfish ...
Read more >
How to Hash Passwords with BCrypt in C#
Hashing a Password using BCrypt. I created a new console application. First, we need to install the BCrypt.Net-Next NuGet package containing the ...
Read more >
BCrypt (spring-security-docs 6.1.3 API)
This password hashing system tries to thwart off-line password cracking using a computationally-intensive hashing algorithm, based on Bruce Schneier's ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found