skip to Main Content

Azure – Could not load file or assembly 'Microsoft.Extensions.Logging, Version=7.0.0.0, Culture=neutral, The system cannot find the file specified

I am trying to include serilog in my Azure function App project (.net 6), My Startup.cs public override void Configure(IFunctionsHostBuilder builder) { Log.Logger = new LoggerConfiguration() .WriteTo.Console() .WriteTo.AzureAnalytics(workspaceId: "xxxxxxxxxxxxxxxxxxxxxxx", authenticationId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") .CreateLogger(); builder.Services.AddLogging(lb => lb.AddSerilog(Log.Logger,true)); ConfigureServices(builder.Services); } private void ConfigureServices(IServiceCollection…

VIEW QUESTION

Asp.net – Need to update .NET Core version for 6.0

I update my.NET Core Version from the previous version to .NET Core Version 6.0 in visual studio 2022 & update the required packages for my project. But in Program.cs I got the below warning. Warning:'ApplicationInsightsWebHostBuilderExtensions.UseApplicationInsights(IWebHostBuilder)' is obsolete: 'This method is…

VIEW QUESTION

Json – why are properties in my response object set to null?

I have this endpoint method: var authToken = await [url] .AddAuthHeaders(config) .PostJsonAsync(new AuthTokenRequest { GrantType = "test", ClientId = "test", ClientSecret = "test", Audience = "test" }) .ReceiveJson<AuthTokenResponse>(); It's calling this endpoint: [HttpPost] public IActionResult Get([FromBody] object request) { try…

VIEW QUESTION
Back To Top
Search