You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
switch(options.Otlp.AuthMode){caseOtlpAuthMode.Unsecured:break;caseOtlpAuthMode.ApiKey:if(string.IsNullOrEmpty(options.Otlp.PrimaryApiKey)){errorMessages.Add("PrimaryApiKey is required when OTLP authentication mode is API key. Specify a Dashboard:Otlp:PrimaryApiKey value.");}break;caseOtlpAuthMode.ClientCertificate:break;casenull:errorMessages.Add($"OTLP endpoint authentication is not configured. Either specify {DashboardConfigNames.DashboardUnsecuredAllowAnonymousName.ConfigKey} with a value of true, or specify ${DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey}. Possible values: {string.Join(", ",typeof(OtlpAuthMode).GetEnumNames())}");break;default:errorMessages.Add($"Unexpected OTLP authentication mode: {options.Otlp.AuthMode}");break;}
I think some wrong logic here. Why does it run to the switch default in this case? I passed DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS = 'true', then I expected it should match with the first one and break.
Application: Aspire.Dashboard.exe
CoreCLR Version: 8.0.224.6711
.NET Version: 8.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Extensions.Options.OptionsValidationException: Unexpected resource service client authentication mode: Unsecured
at Aspire.Dashboard.DashboardWebApplication.GetDashboardOptions(WebApplicationBuilder builder, IConfigurationSection dashboardConfigSection) in /_/src/Aspire.Dashboard/DashboardWebApplication.cs:line 239
at Aspire.Dashboard.DashboardWebApplication..ctor(Action`1 configureBuilder) in /_/src/Aspire.Dashboard/DashboardWebApplication.cs:line 82 at Program.<Main>$(String[] args)in /_/src/Aspire.Dashboard/Program.cs:line 7
Could anyone check it? Currently, I couldn't roll back to the previous version (dotnet workload removed the ability to version rollback).
I followed the guidance at https://github.com/dotnet/aspire/blob/main/docs/using-latest-daily.md to install the latest released from .NET Aspire (
8.0.0-preview.5.24178.10
). After installed in my laptop (Windows 11), and ran it.It threw an exception:
I check the code at the PR: #3033
I think some wrong logic here. Why does it run to the
switch default
in this case? I passedDOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS = 'true'
, then I expected it should match with the first one and break.Ref: https://github.com/dotnet/aspire/blob/main/src/Aspire.Dashboard/Configuration/ValidateDashboardOptions.cs#L46
I checked the Windows event logs:
Could anyone check it? Currently, I couldn't roll back to the previous version (
dotnet workload
removed the ability to version rollback)./cc @davidfowl @JamesNK
The text was updated successfully, but these errors were encountered: