Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Functions V4 - Require a minimum version for supported extensions

Open goanwied opened this issue 2 years ago • 4 comments

Hello @paulbatum

I experience a similar issue as @heavenwing has. I upgraded an azure function to v4 and currently receive the following error in Azure Portal.

image

Microsoft.Azure.WebJobs.Script.ExternalStartupException : Error building configuration in an external startup class. ---> Microsoft.Azure.WebJobs.Script.HostInitializationException : One or more loaded extensions do not meet the minimum requirements. For more information see https://aka.ms/func-min-extension-versions. ExtensionStartupType AzureStorageWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.Extensions.Storage, Version=3.0.11.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not meet the required minimum version of 4.0.4.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.Storage to 4.0.4 or later

I have applied some changes, such as applying the WEBSITE_RUN_FROM_PACKAGE = 1 in the config of the Azure function and updating to CICD pipeline to deploy as runFromPackage.

Also I added the package Microsoft.Azure.WebJobs.Extensions.Storage to the project, however still receiving the above error.

image

Interestingly I can see the my queue or time triggered function have been executed.

Originally posted by @goanwied in https://github.com/Azure/Azure-Functions/issues/1987#issuecomment-1679984368

goanwied avatar Aug 16 '23 05:08 goanwied

Thanks for reporting @fabiocav pls comment

bhagyshricompany avatar Sep 12 '23 10:09 bhagyshricompany

Have the same error upgrading from v3 to v4. in .net 7. Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class. Grpc.AspNetCore.Server: Could not load file or assembly 'Microsoft.AspNetCore.Routing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.

image

Didza avatar Oct 25 '23 15:10 Didza

I have the same error after upgrading my packages and upgrading from runtime 3 to 4. I then removed the <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="5.2.1" /> from my project and still same error.

Microsoft.Azure.WebJobs.Script.ExternalStartupException : Error building configuration in an external startup class. ---> Microsoft.Azure.WebJobs.Script.HostInitializationException : One or more loaded extensions do not meet the minimum requirements. For more information see https://aka.ms/func-min-extension-versions. ExtensionStartupType AzureStorageWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.Extensions.Storage

rensohollhumer avatar Oct 27 '23 19:10 rensohollhumer

Hey all,

I've just had the same error as @goanwied and the final comment on this issue has solved it: https://github.com/Azure/Azure-Functions/issues/1987

JackDC16 avatar Feb 20 '24 18:02 JackDC16