Open v-elenafeng opened 2 months ago
Try updating the identity packages. This is a bug that has been fixed.
Try updating the identity packages. This is a bug that has been fixed.
Thanks, after updating the identity packages I was able to run successfully. Just wondering when the package version fix in VS will come in? Is there a PR?
cc @vijayrkn @BillHiebert @phenning
@deepchoudhery - Can you please get the identity package versions updated in the identity scaffolding for this? This should just be a package update change.
Ping @deepchoudhery in case you didn't see this.
I'm able to repro this issue with the released VS 17.10.0.
@deepchoudhery ping you again on the packages update for msi to resolve this issue.
Hi, Will look at this issue in my next cycle here, apologies for the delay
REGRESSION INFO: Also reproduces on Aspire 8.0 P4 and Aspire 8.0 P5
INSTALL STEPS
Install VS 17.10.0 Preview 5 FB, Preview channel
REPRO STEPS
ACTUAL F5 failed with exception: This service descriptor is keyed. Your service provider may not support keyed services.![image](https://github.com/Azure/azure-dev/assets/78580199/7dd77752-eb27-499f-b6b1-be35f232047e)
System.InvalidOperationException HResult=0x80131509 Message=This service descriptor is keyed. Your service provider may not support keyed services. Source=Microsoft.Extensions.DependencyInjection.Abstractions StackTrace: at Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ThrowKeyedDescriptor() at Microsoft.Extensions.DependencyInjection.ServiceDescriptor.get_ImplementationType() at Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderExtensions.<>c.b__5_0(ServiceDescriptor s)
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable$(String[] args) in C:\Users\v-elenafeng\source\repos\WebApplication9\WebApplication9\Program.cs:line 13
1 source, Func
2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func
2 predicate) at Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderExtensions.AddMicrosoftIdentityWebAppInternal(AuthenticationBuilder builder, Action1 configureMicrosoftIdentityOptions, Action
1 configureCookieAuthenticationOptions, String openIdConnectScheme, String cookieScheme, Boolean subscribeToOpenIdConnectMiddlewareDiagnosticsEvents, String displayName) at Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderExtensions.AddMicrosoftIdentityWebAppWithConfiguration(AuthenticationBuilder builder, Action1 configureMicrosoftIdentityOptions, Action
1 configureCookieAuthenticationOptions, String openIdConnectScheme, String cookieScheme, Boolean subscribeToOpenIdConnectMiddlewareDiagnosticsEvents, String displayName, IConfigurationSection configurationSection) at Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderExtensions.AddMicrosoftIdentityWebApp(AuthenticationBuilder builder, IConfigurationSection configurationSection, String openIdConnectScheme, String cookieScheme, Boolean subscribeToOpenIdConnectMiddlewareDiagnosticsEvents, String displayName) at Program.EXPECTED Can run successfully with MSI auth + Aspire enabled.