1
Answer

Could not load file or assembly in Azure Functions

Hi, while running my azure functions, I am getting this exception in startup class. Even after installing this package error persist.
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.'
this is my startup class

#region Dependency
using Microsoft.Azure.Functions.Extensions.DependencyInjection;
#endregion
 
[assembly: FunctionsStartup(typeof(HROne.Events.FunctionApp.Startup))]
namespace HROne.Events.FunctionApp;
 
public class Startup : FunctionsStartup
{
    public override void Configure(IFunctionsHostBuilder builder)
    { 
        FunctionsHostBuilderContext context = builder.GetContext(); 
        builder.Services.RegisterApplicationServices(context.ApplicationRootPath); 
    } 
}



Any help!

Answers (1)