azure-functions-host: [Bug] Host Error during the Function Run / Startup with the Version 7 of two NuGet Packages in Azure Functions .NET 6 V4
Is your question related to a specific version? If so, please specify:
Azure Functions V4 - .NET 6 Basic HTTP Trigger Packages:
Microsoft.EntityFrameworkCore
- 7.0.1 Stable VersionMicrosoft.Extensions.Configuration.Abstractions
- 7.0.0 Stable Version
When I run the basic Http Trigger Function with above versioned packages, it is giving me different errors such as:
With Version 6 of both NuGet Packages:
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
.NET 6 Core Visual Studio 2022 (17.4.3) Azure Functions Core Tools 4.0.4785
Question
I have seen that Entity Framework core Version 7.0.1 is released 2 days ago and M.E.Config.Abstractions
Version 7.0.0 is released a month ago and has the compatibility with .NET 6 to 7.
Version 7 Packages are causing the Host Exceptions in Azure Functions .NET 6. Few issues reported in Stack Overflow Forum such as:
Please help to fix the issue.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 12
- Comments: 16 (2 by maintainers)
@biste5 Thanks! I was able to make it run yesterday. I made all Microsoft.* packages to be at 6.0.0 and it worked with .NET 6… My best regards!
@daspurubairesdev switch to isolated-mode and .NET 7
Having the same issue here, .NET v6, Azure Functions V4, and I need to update my EF projects because Azure decided to upgrade my MySQL server to the latest version and so I need to update the MySQL driver which only works with the latest EF version, we are on a loop and we need to solve this. Any news? Thanks!!
@nicholasamiller : if you’re running in-process, that’s not supposed to work because in-process model is not expected to support .NET 7. If you’re running in isolated mode, then it should work with .NET 7
https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide#supported-versions