Could not load file or assembly Microsoft.Extensions.Logging.AzureAppServices
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
Seeing 500.30 startup error, after republishing the website.
here is the stack trace for this bug
`Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Logging.AzureAppServices, Version=8.0.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
File name: 'Microsoft.Extensions.Logging.AzureAppServices, Version=8.0.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Microsoft.AspNetCore.Hosting.AppServicesWebHostBuilderExtensions.<>c.b__0_0(ILoggingBuilder builder)
at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services, Action1 configure)
at Microsoft.AspNetCore.Hosting.WebHostBuilderExtensions.<>c__DisplayClass8_0.b__0(IServiceCollection collection)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass10_0.b__0(WebHostBuilderContext _, IServiceCollection services)
at System.Action2.Invoke(T1 arg1, T2 arg2)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()`
### Expected Behavior
Republishing a site without changing any code should not cause the site to go down due to the automatically installed ASP.NET Core Logging site extension
### Steps To Reproduce
Update site .NET version to 8 and also update all Microsoft packages to 8.0.6.
The project manifest looks like this -
`
all
runtime; build; native; contentfiles; analyzers; buildtransitive
`
### Exceptions (if any)
_No response_
### .NET Version
8.0.300
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.