Skip to content

ASP.NET Core Logging Integration File Not Found Exception #66315

@bradleyables22

Description

@bradleyables22

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hope I've tagged this correctly, apologies if incorrect.

When updating an ap from .NET 8 to .NET10, after deployment to Azure App Services the following log started showing up in Application Insights.

Startup assembly Microsoft.AspNetCore.AzureAppServices.HostingStartup failed to execute. See the inner exception for more details. Could not load file or assembly 'Microsoft.AspNetCore.AzureAppServices.HostingStartup, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Logging Integration Extension in AAS has been updated to 10.0.5. Application is running latest .NET 10 distro. This issue appears in both self-contained and framework dependent.

Expected Behavior

Exception is not thrown at application startup in hosting environment.

Steps To Reproduce

deploy an asp.net api to azure app services with App insights telemetry enabled.

Exceptions (if any)

System.InvalidOperationException: System.IO.FileNotFoundException:   at System.Reflection.RuntimeAssembly.InternalLoad (System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)   at System.Reflection.Assembly.Load (System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)   at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.ExecuteHostingStartups (Microsoft.AspNetCore.Hosting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)

.NET Version

10.0.201

Anything else?

Thanks for all yall do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-hostingIncludes HostingbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions