Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Conor Breen 11 posts 100 karma points
    Jun 15, 2020 @ 17:50
    Conor Breen
    0

    Method not found: 'Void Umbraco.Web.Search.UmbracoIndexesCreator..ctor

    Hi,

    I'm getting an error in an Umbraco 8.6.0 site, which was working completely fine a few days ago, but without any changes or new development in between times, has started to produce an error.

    This site has a custom Component to run a migration to add a new POCO object to the SQL database, and has a custom Dashboard. These were working fine but on first run after a few days of not looking at the project it started to produce the below error and I cannot get it to boot successfully.

    Full stack trace is:

    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.
    
    -> System.MissingMethodException: Method not found: 'Void Umbraco.Web.Search.UmbracoIndexesCreator..ctor(Umbraco.Core.Logging.IProfilingLogger, Umbraco.Core.Services.ILocalizationService, Umbraco.Core.Services.IPublicAccessService, Umbraco.Core.Services.IMemberService)'.
      at Our.Umbraco.ExamineConfig.UmbracoIndexCreator..ctor(IProfilingLogger profilingLogger, ILocalizationService languageService, IPublicAccessService publicAccessService, IMemberService memberService)
      at DynamicMethod(Object[] )
      at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 6169
      at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4656
      at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3856
      at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4158
      at LightInject.ServiceContainer.EmitConstructorDependencies(ConstructionInfo constructionInfo, IEmitter emitter, Action`1 decoratorTargetEmitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4120
      at LightInject.ServiceContainer.EmitNewInstanceUsingImplementingType(IEmitter emitter, ConstructionInfo constructionInfo, Action`1 decoratorTargetEmitMethod) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4081
      at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4038
      at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3856
      at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3777
      at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4743
      at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4705
      at LightInject.ServiceContainer.GetInstance(Type serviceType) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3437
      at Umbraco.Core.Composing.ComponentCollectionBuilder.CreateItem(IFactory factory, Type itemType) in D:\a\1\s\src\Umbraco.Core\Composing\ComponentCollectionBuilder.cs:line 33
      at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
      at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
      at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
      at Umbraco.Core.Composing.ComponentCollectionBuilder.CreateItems(IFactory factory) in D:\a\1\s\src\Umbraco.Core\Composing\ComponentCollectionBuilder.cs:line 25
      at Umbraco.Core.Composing.CollectionBuilderBase`3.CreateCollection(IFactory factory) in D:\a\1\s\src\Umbraco.Core\Composing\CollectionBuilderBase.cs:line 117
      at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 6169
      at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4656
      at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3856
      at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3777
      at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4743
      at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4705
      at LightInject.ServiceContainer.GetInstance(Type serviceType) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3437
      at Umbraco.Core.FactoryExtensions.GetInstance[T](IFactory factory) in D:\a\1\s\src\Umbraco.Core\FactoryExtensions.cs:line 22
      at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in D:\a\1\s\src\Umbraco.Core\Runtime\CoreRuntime.cs:line 187
    

    Can anyone point me in the right direction on this?

    Thanks, Conor

  • Conor Breen 11 posts 100 karma points
    Jun 16, 2020 @ 09:16
    Conor Breen
    100

    Will Answer my own question. It seems a package that had been added and then removed had caused the issue - the DLL was left behind in the bin folder and since a clean only cleans referenced assemblies it did not remove it. Deleting the entire contents of the bin folder and rebuilding resolved the issue.

    I think the package which caused the issue was https://github.com/callumbwhyte/umbraco-examine-config - I suspect the version releases of this package are not as tightly coupled with the Umbraco releases as they should be.

  • Mike 35 posts 100 karma points
    Jun 29, 2020 @ 16:26
    Mike
    0

    I am also receiving this error when installing Callum's package. Were you able to get your site working AND having the custom package installed?

  • Conor Breen 11 posts 100 karma points
    Jun 29, 2020 @ 16:42
    Conor Breen
    0

    @Mike no I did not. I didn't actually need to use Callum's package; it was suggested to me as a fix for an Azure caching issue I was having on another post, but turned out not to be needed to resolve that issue.

Please Sign in or register to post replies

Write your reply to:

Draft