0

I recently upgraded Azure.Core in my .NET application from 1.47.3 to 1.50.0.However, even after the upgrade, my API is still throwing this exception:

System.IO.FileLoadException: Could not load file or assembly

'Azure.Core, Version=1.47.3.0, Culture=neutral, PublicKeyToken=92742159e12e44c8'

or one of its dependencies. The located assembly's manifest definition

does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have already tried:

  • Updating Azure.Core to 1.50.0

  • Updating dependent packages such as

    • Azure.Storage.Files.Shares

    • Azure.Storage.Common

  • Cleaning solution, deleting /bin and /obj

  • Ensuring csproj shows only Azure.Core 1.50.0

  • Manually confirming that no other project references 1.47.3

But I still get this assembly mismatch. project is .NET Framework (not .NET Core),Any guidance on how to find and remove the leftover Azure.Core 1.47.3 reference is appreciated.

New contributor
muskan p is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2
  • 1
    Enable Fusion Logging and create a binding-redirect in your app.config or web.config if necessary. Commented Nov 26 at 18:31
  • 1
    This question is similar to: How to resolve Could not load file or assembly 'Azure.Core'. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented Nov 26 at 18:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.