fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1] An unhandled exception has occurred while executing the request. System.ArgumentNullException: Value cannot be null. (Parameter 's') at System.ArgumentNullException.Throw(String paramName) at System.Text.Encoding.GetBytes(String s) at ArsesStoreApp.Infrastructure.JwtUtil.JwtAuthenticationConfig.<>c__DisplayClass0_0.b__1(JwtBearerOptions option) in H:\Project ASP Core\ArsesStore-master\EndPoints\ArsesStoreApp\Infrastructure\JwtUtil\AddJwtAuthentication.cs:line 18 at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name) at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at Microsoft.Extensions.Options.OptionsCache`1.GetOrAdd[TArg](String name, Func`3 createOptions, TArg factoryArgument) at Microsoft.Extensions.Options.OptionsMonitor`1.Get(String name) at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.InitializeAsync(AuthenticationScheme scheme, HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationHandlerProvider.GetHandlerAsync(HttpContext context, String authenticationScheme) at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Program.<>c.<<
$>b__0_0>d.MoveNext() in H:\Project ASP Core\ArsesStore-master\EndPoints\ArsesStoreApp\Program.cs:line 53 --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task) fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[3] An exception was thrown attempting to execute the error handler. System.ArgumentNullException: Value cannot be null. (Parameter 's') at System.ArgumentNullException.Throw(String paramName) at System.Text.Encoding.GetBytes(String s) at ArsesStoreApp.Infrastructure.JwtUtil.JwtAuthenticationConfig.<>c__DisplayClass0_0.b__1(JwtBearerOptions option) in H:\Project ASP Core\ArsesStore-master\EndPoints\ArsesStoreApp\Infrastructure\JwtUtil\AddJwtAuthentication.cs:line 18 at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name) at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy`1.CreateValue() at Microsoft.Extensions.Options.OptionsCache`1.GetOrAdd[TArg](String name, Func`3 createOptions, TArg factoryArgument) at Microsoft.Extensions.Options.OptionsMonitor`1.Get(String name) at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.InitializeAsync(AuthenticationScheme scheme, HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationHandlerProvider.GetHan