Hi, I have seen this error before on the forum, but no answer
We are trying to port over the new Elastic project to our solution.
We just copy over the Litium.Accelerator.Elasticsearch, include it into our solution.
Add Litium.Accelerator as a reference.
A Litium.Accelerator.Elasticsearch as a ref to Litium.Accelerator.Mvc
And Build, then we get this error on startup:
Required service ‘Litium.Search.SearchPermissionService’ is missing.
I can find the difference between our setup and the default one.
Litium version: 7.4.2
[Exception: Required service 'Litium.Search.SearchPermissionService' is missing.]
Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.ValidateRequireServices(IServiceCollection services, ICollection1 types) +492 Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions.AddLitiumApplication(IServiceCollection services, Action
1 app) +2884
Litium.Application.Bootstrapper.Runtime.ApplicationBootstrap.Install(IIoCContainer container, Assembly[] assemblies) +596
Litium.Infrastructure.InversionOfControl.IoCContainerExtensions.InstallAssemblies(IIoCContainer container, Assembly[] assemblies, ICollection1 types) +227 Litium.Infrastructure.InversionOfControl.SetupTask.Init(IEnumerable
1 assemblies, IEnumerable1 types) +793 Litium.Owin.Lifecycle.Application.ExecuteInitInversionOfControll(Assembly[] assemblies, ICollection
1 instanciableTypes, List1 allFilteredFypes) +279 Litium.Owin.Lifecycle.Application.Start(IEnumerable
1 assemblies, IEnumerable`1 typesToIgnore) +1350
Litium.Web.Runtime.LitiumHttpModule…ctor() +216
[TargetInvocationException: Ett undantagsfel har inträffat i målet för en aktivering.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +142
System.Activator.CreateInstance(Type type, Boolean nonPublic) +107
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1476
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +186
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +234
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1153
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +139
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
[HttpException (0x80004005): Ett undantagsfel har inträffat i målet för en aktivering.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724