-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresfeature-static-files
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
In .NET 10.0.100-preview.7.25380.108, the ManifestEmbeddedFileProvider fails to load manifests for me that work using earlier .NET builds.
Expected Behavior
ManifestEmbeddedFileProvider should successfully load the manifest and provide the embedded files.
Steps To Reproduce
A minimal reproduction is available here:
https://github.com/josephdecock/ManifestEmbeddedFileProviderRepro/tree/main
Exceptions (if any)
Unhandled exception. System.InvalidOperationException: Could not load the embedded file manifest 'Microsoft.Extensions.FileProviders.Embedded.Manifest.xml' for assembly 'Embedded'.
at Microsoft.Extensions.FileProviders.Embedded.Manifest.ManifestParser.Parse(Assembly assembly, String name)
at Microsoft.Extensions.FileProviders.ManifestEmbeddedFileProvider..ctor(Assembly assembly)
at StaticAssetsConfigureOptions.PostConfigure(String name, StaticFileOptions options) in /Users/josephdecock/src/josephdecock/ManifestEmbeddedFileProvider/Embedded/StaticAssetsConfigureOptions.cs:line 20
at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager`1.get_Value()
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware..ctor(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions`1 options, ILoggerFactory loggerFactory)
at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, IntPtr* args)
at System.Reflection.ConstructorInvoker.InvokeDirectByRefWithFewArgs(Span`1 copyOfArgs)
at System.Reflection.ConstructorInvoker.InvokeDirectByRef(Object arg1, Object arg2, Object arg3, Object arg4)
at System.Reflection.ConstructorInvoker.InvokeImpl(Object arg1, Object arg2, Object arg3, Object arg4)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.ReflectionMiddlewareBinder.CreateMiddleware(RequestDelegate next)
at Microsoft.AspNetCore.Builder.ApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.StaticAssetDevelopmentRuntimeHandler.EnableSupport(IEndpointRouteBuilder endpoints, StaticAssetsEndpointConventionBuilder builder, IWebHostEnvironment environment, List`1 descriptors)
at Microsoft.AspNetCore.Builder.StaticAssetsEndpointRouteBuilderExtensions.MapStaticAssets(IEndpointRouteBuilder endpoints, String staticAssetsManifestPath)
at Program.<Main>$(String[] args) in /Users/josephdecock/src/josephdecock/ManifestEmbeddedFileProvider/Web/Program.cs:line 26
.NET Version
10.0.100-preview.7.25380.108
Metadata
Metadata
Assignees
Labels
area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresfeature-static-files