Error occurs when enabling the dynamic user level level. What may be causing such a problem?
An unhandled exception occurred while processing the request.
NullReferenceException: Object reference not set to an instance of an object.
ASPNETMaker2023.Models.ead2024+AdvancedSecurityBase.SetupUserLevels() in AdvancedSecurityBase.cs, line 639
DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'AdvancedSecurity'.
Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()
DependencyResolutionException: An exception was thrown while activating ASPNETMaker2023.Models.ead2024+AdvancedSecurity.
Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)