you appear to be using AddOpenIdConnect(). this requires several config settings including clientid. if you do not want to specify a clientid, remove the openid support from your application.
System.ArgumentException: Options.ClientId must be provided (Parameter 'ClientId')
I am trying to host my .NET core project on windows server IIS, have published the files there but having an error.
Category: Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer
TraceId: 9f6ade836602c22e139ae05a6b6f46d8
RequestId: 80000192-0000-b300-b63f-84710c7967bb
System.ArgumentException: Options.ClientId must be provided (Parameter 'ClientId')
at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions.Validate()
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions.Validate(String scheme)
at Microsoft.Extensions.Options.ValidateOptions`1.Validate(String name, TOptions options)
at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name)
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.CreateValue()
at Microsoft.Extensions.Options.OptionsMonitor`1.Get(String name)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
Developer technologies | ASP.NET | ASP.NET Core
1 answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 78,161 Reputation points Volunteer Moderator
2024-12-02T20:46:48.34+00:00