Copied to clipboard

Flag this post as spam?

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


  • Rasmus Olofsson 23 posts 187 karma points c-trib
    Jul 27, 2020 @ 00:08
    Rasmus Olofsson
    0

    Azure uSync exception. Method not found and lightinject errors.

    Hi,

    I had the brilliant idea to do a deploy at around 23:00. It failed and it is now 02:00. In Azure.

    An exception is thrown and it complains about uSync content edition which I do not have installed anymore and no references to it. Here is the error message:

    Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
    
    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.
    
    -> System.MissingMethodException: Method not found: 'Void uSync8.BackOffice.SyncHandlers.SyncHandlerTreeBase`2..ctor(Umbraco.Core.Services.IEntityService, Umbraco.Core.Logging.IProfilingLogger, uSync8.Core.Serialization.ISyncSerializer`1<!0>, uSync8.Core.Tracking.ISyncTracker`1<!0>, uSync8.Core.Dependency.ISyncDependencyChecker`1<!0>, uSync8.BackOffice.Services.SyncFileService)'.
      at uSync8.ContentEdition.Handlers.ContentHandler..ctor(IEntityService entityService, IProfilingLogger logger, IContentService contentService, ISyncSerializer`1 serializer, ISyncTracker`1 tracker, ISyncDependencyChecker`1 checker, SyncFileService syncFileService)
      at DynamicMethod(Object[] )
      at LightInject.ServiceContainer.GetInstance(Type serviceType) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3442
      at Umbraco.Core.Composing.LightInject.LightInjectContainer.GetInstance(Type type) in d:\a\1\s\src\Umbraco.Core\Composing\LightInject\LightInjectContainer.cs:line 111
      at Umbraco.Core.Composing.CollectionBuilderBase`3.CreateItem(IFactory factory, Type itemType) in d:\a\1\s\src\Umbraco.Core\Composing\CollectionBuilderBase.cs:line 108
      at Umbraco.Core.Composing.CollectionBuilderBase`3.<>c__DisplayClass10_0.<CreateItems>b__0(Type x) in d:\a\1\s\src\Umbraco.Core\Composing\CollectionBuilderBase.cs:line 100
      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.CollectionBuilderBase`3.CreateItems(IFactory factory) in d:\a\1\s\src\Umbraco.Core\Composing\CollectionBuilderBase.cs:line 99
      at Umbraco.Core.Composing.CollectionBuilderBase`3.CreateCollection(IFactory factory) in d:\a\1\s\src\Umbraco.Core\Composing\CollectionBuilderBase.cs:line 117
      at Umbraco.Core.Composing.LightInject.LightInjectContainer.<>c__DisplayClass20_0`1.<Register>b__0(IServiceFactory f) in d:\a\1\s\src\Umbraco.Core\Composing\LightInject\LightInjectContainer.cs:line 172
      at DynamicMethod(Object[] )
      at LightInject.ServiceContainer.<>c__DisplayClass150_0.<WrapAsFuncDelegate>b__0() in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3798
      at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1() in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4657
      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__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4649
      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 4080
      at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4034
      at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3929
      at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__2(IEmitter ms) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4649
      at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3776
      at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1() in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4657
      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__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4649
      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 4080
      at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4034
      at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3929
      at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__0(IEmitter methodSkeleton) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4646
      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 3776
      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.LightInject.LightInjectContainer.GetInstance(Type type) in d:\a\1\s\src\Umbraco.Core\Composing\LightInject\LightInjectContainer.cs:line 111
      at Umbraco.Core.Composing.ComponentCollectionBuilder.CreateItem(IFactory factory, Type itemType) in d:\a\1\s\src\Umbraco.Core\Composing\ComponentCollectionBuilder.cs:line 33
      at Umbraco.Core.Composing.CollectionBuilderBase`3.<>c__DisplayClass10_0.<CreateItems>b__0(Type x) in d:\a\1\s\src\Umbraco.Core\Composing\CollectionBuilderBase.cs:line 100
      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.CollectionBuilderBase`3.CreateItems(IFactory factory) in d:\a\1\s\src\Umbraco.Core\Composing\CollectionBuilderBase.cs:line 99
      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 Umbraco.Core.Composing.LightInject.LightInjectContainer.<>c__DisplayClass20_0`1.<Register>b__0(IServiceFactory f) in d:\a\1\s\src\Umbraco.Core\Composing\LightInject\LightInjectContainer.cs:line 172
      at DynamicMethod(Object[] )
      at LightInject.ServiceContainer.<>c__DisplayClass150_0.<WrapAsFuncDelegate>b__0() in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3798
      at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1() in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4657
      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__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4649
      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 3776
      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.LightInject.LightInjectContainer.GetInstance(Type type) in d:\a\1\s\src\Umbraco.Core\Composing\LightInject\LightInjectContainer.cs:line 111
      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
    

    Umbraco version 8.6.3.

    I have tried deleting the uSync package completely and everything related to it but I get the same error.

    Lightinject is version 5.5.0 and I have tried downgrading to 5.4.0 to no effect.

    I have tried to roll back to multiple older release versions of my site but it doesn't work. I have tried azure pipelines deploy, ftp deploy, visual studio app service deploy.

    Publishing to a folder and pointing to it locally and viewing it works perfectly. For some reason Azure does not want to play anymore.

    Here is the repo and release version if it helps: https://github.com/rasolo/website/tree/release/2.4

    Any ideas?

  • Rasmus Olofsson 23 posts 187 karma points c-trib
    Jul 27, 2020 @ 00:46
    Rasmus Olofsson
    100

    It is now almost 03:00 and I was able to fix it.

    By simply reinstalling usync content edition using nuget package manager I was able to get it to work again.

Please Sign in or register to post replies

Write your reply to:

Draft