Azure / Azure/azure-functions-host
Reference Microsoft.Identity.Web 1.25.1 - Could not load file or assembly Microsoft.IdentityModel.Logging
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
Microsoft.Net.SDK.Functions 4.1.1
.net6
Azure Functions Host 4.6.1 (via core-tools in visual studio)
I have a library that references Microsoft.Identity.Web 1.25.1 which is referenced by my functions project. At runtime I get
"Microsoft.Identity.Web: Could not load file or assembly 'Microsoft.IdentityModel.Logging, Version=6.20.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified."
Previously my library had referenced Microsoft.Identity.Web 1.23.1 and it was working.
For my functions project Microsoft.IdentityModel.Logging exist in top bin folder, but not the nested bin folder. If I copy to nested bin folder manually it runs without issue.
Contributor guide
Research direction
Reproduce the runtime failure with Microsoft.Net.SDK.Functions 4.1.1, .NET 6, Azure Functions Host 4.6.1, and Microsoft.Identity.Web 1.25.1, comparing it with 1.23.1. Inspect the top and nested bin folders and the dependency-loading path; done means the nested function output includes Microsoft.IdentityModel.Logging 6.20.0.0 without manual copying.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100