Migration from v2022

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
emlim896
User
Posts: 13

Migration from v2022

Post by emlim896 »

Hello everyone,

I have just tried migrating from 2022 to 2023.2 without any errors.

But when I run it the error showing,

An unhandled exception occurred while processing the request.
ComponentNotRegisteredException: The requested service 'myproject.Models.myproject+UserLevelPermissions' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.

Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable<Parameter> parameters)
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 myproject.Models.myproject+AdvancedSecurity.

Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)

Any help?


MichaelG
User
Posts: 1095

Post by MichaelG »

Please make sure the the UserLevelPermission table is checked for generation.


emlim896
User
Posts: 13

Post by emlim896 »

Thanks Michael


Post Reply