London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Find indexing job not indexing

Vote:
 

Hello everyone!

I'm having trouble with the Episerver Find indexing job, when i run the indexing job it doesn't index all of my content on the site. I Debuged the project while running the indexing job and it crashed on this line of code and gave me this exception. 

var roleManager = ServiceLocator.Current.GetInstance();

An exception of type 'EPiServer.ServiceLocation.ActivationException' occurred in EPiServer.Framework.dll but was not handled in user code

Additional information: Activation error occurred while trying to get instance of type ApplicationRoleManager`1, key ""

Any idea what it could be?

Log4net

 WARN EPiServer.Find.Cms.ContentIndexer: DESKTOP-1234: An exception occurred during reindex operation. System.AggregateException: One or more errors occurred. ---> EPiServer.ServiceLocation.ActivationException: Activation error occurred while trying to get instance of type ApplicationRoleManager`1, key "" ---> StructureMap.Building.StructureMapBuildException: Failure while building 'Lambda: HttpContext.Current.GetOwinContext().Get()', check the inner exception for details
1.) Lambda: HttpContext.Current.GetOwinContext().Get()
2.) Instance of ApplicationRoleManager
3.) Container.GetInstance(ApplicationRoleManager<>MyUser>)
---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Web.HttpContextExtensions.GetOwinEnvironment(HttpContext context)
at System.Web.HttpContextExtensions.GetOwinContext(HttpContext context)
at lambda_method(Closure , IBuildSession , IContext )
--- End of inner exception stack trace ---

#177326
Edited, Apr 07, 2017 15:02
Vote:
 

Do you get it when you run it manually of when it is run by schedule?

When run by schedule there are no logged in user

#177330
Apr 07, 2017 20:33
Vote:
 

I've tried running it both ways, but i still get the same error.

#177355
Apr 10, 2017 10:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.