Everytime we try and delete something from the Backoffice, uSync throws an NullReferenceException at us, and I have no idea what is causing this. Is anyone experiencing the same behaviour?
Exception
System.NullReferenceException: Object reference not set to an instance of an object.
vid uSync8.ContentEdition.Serializers.ContentSerializer.FindItem(Int32 id)
vid uSync8.ContentEdition.Serializers.ContentSerializerBase`1.SerializeInfo(TObject item)
vid uSync8.ContentEdition.Serializers.ContentSerializer.SerializeInfo(IContent item)
vid uSync8.ContentEdition.Serializers.ContentSerializer.SerializeCore(IContent item)
vid uSync8.Core.Serialization.SyncSerializerBase`1.Serialize(TObject item)
vid uSync8.BackOffice.SyncHandlers.SyncHandlerBase`2.Export(TObject item, String folder, HandlerSettings config)
vid uSync8.BackOffice.SyncHandlers.SyncHandlerBase`2.EventMovedItem(IService sender, MoveEventArgs`1 e)
vid Umbraco.Core.Events.TypedEventHandler`2.Invoke(TSender sender, TEventArgs e)
vid Umbraco.Core.Events.EventDefinition`2.RaiseEvent() i D:\a\1\s\src\Umbraco.Core\Events\EventDefinition.cs:rad 69
vid Umbraco.Core.Events.QueuingEventDispatcher.ScopeExitCompleted() i D:\a\1\s\src\Umbraco.Core\Events\QueuingEventDispatcher.cs:rad 23
vid Umbraco.Core.Events.QueuingEventDispatcherBase.ScopeExit(Boolean completed) i D:\a\1\s\src\Umbraco.Core\Events\QueuingEventDispatcherBase.cs:rad 337
vid Umbraco.Core.Scoping.Scope.<>c__DisplayClass71_0.<RobustExit>b__1() i D:\a\1\s\src\Umbraco.Core\Scoping\Scope.cs:rad 434
vid Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions) i D:\a\1\s\src\Umbraco.Core\Scoping\Scope.cs:rad 472
vid Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions) i D:\a\1\s\src\Umbraco.Core\Scoping\Scope.cs:rad 476
vid Umbraco.Core.Scoping.Scope.RobustExit(Boolean completed, Boolean onException) i D:\a\1\s\src\Umbraco.Core\Scoping\Scope.cs:rad 420
vid Umbraco.Core.Scoping.Scope.DisposeLastScope() i D:\a\1\s\src\Umbraco.Core\Scoping\Scope.cs:rad 400
vid Umbraco.Core.Scoping.Scope.Dispose() i D:\a\1\s\src\Umbraco.Core\Scoping\Scope.cs:rad 363
vid Umbraco.Core.Services.Implement.ContentService.MoveToRecycleBin(IContent content, Int32 userId) i D:\a\1\s\src\Umbraco.Core\Services\Implement\ContentService.cs:rad 1903
vid Umbraco.Web.Editors.ContentController.DeleteById(Int32 id)
vid lambda_method(Closure , Object , Object[] )
vid System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
vid System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
vid System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
uSync throws exception on deleting content from Backoffice
Everytime we try and delete something from the Backoffice, uSync throws an NullReferenceException at us, and I have no idea what is causing this. Is anyone experiencing the same behaviour?
Hi Mathias,
what version of uSync/Umbraco are you using. I will see if i can recreate the issue.
Hi Kevin, you are as fast as always <3
Umbraco: 8.6.1
Usync: v.8.6.2.0 + Content Edition
Hi
We do have this issue that was fixed in 8.6.3 - https://github.com/KevinJump/uSync8/issues/108 it might well be this.
https://github.com/KevinJump/uSync8/releases/tag/v8.6.3
Kevin
I will try and update uSync and see if that fixes the issues!
Will come back with my results, thanks Kev
It is working now, Thanks a lot Kevin for your quick input!
Does this also apply to uSync.Complete?
I'm having the same issue that issue 108 mentions but I'm not 100% of the upgrade process if not using NuGet.
Thank you.
Hi Brian
Yes that fix is in the latest version of uSync.Complete.
if you are not using nuget, then you can upgrade by installing the latest package file from our
(https://our.umbraco.com/packages/developer-tools/usynccomplete/)
this should update all the required files.
and to be sure that things like javascript are not cached - you should increment the version value inside the
clientdependency.config
file.Kevin
Thank you, Kevin.
The update worked exactly as described above and the issue is no longer present.
Take care!
is working on a reply...