Old document doesn't load

Hi, I’m trying to update an old package to the latest preview and i get some errors.

I also tried to save it with latest stable 6.7 and then open it with 7-0.0042 with same results.

Any help would be great.

    BadImageFormatException: "Cannot load a reference assembly for execution."
        StackTrace:

BadImageFormatException: "Could not load file or assembly 'Microsoft.Kinect, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Reference assemblies cannot be loaded for execution. (0x80131058)"
    FileName: "Microsoft.Kinect, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    StackTrace:
        System.Reflection.RuntimeAssembly { internal static void <InternalLoad>g____PInvoke|49_0(System.Reflection.NativeAssemblyNameParts* __pAssemblyNameParts_native, System.Runtime.CompilerServices.ObjectHandleOnStack __requestingAssembly_native, System.Runtime.CompilerServices.StackCrawlMarkHandle __stackMark_native, int __throwOnFileNotFound_native, System.Runtime.CompilerServices.ObjectHandleOnStack __assemblyLoadContext_native, System.Runtime.CompilerServices.ObjectHandleOnStack __retAssembly_native) { ... } } 
        System.Reflection.RuntimeAssembly { internal static System.Reflection.RuntimeAssembly InternalLoad(System.Reflection.AssemblyName assemblyName, System.Threading.StackCrawlMark& stackMark, System.Runtime.Loader.AssemblyLoadContext assemblyLoadContext, System.Reflection.RuntimeAssembly requestingAssembly, bool throwOnFileNotFound) { ... } } 
        System.Reflection.TypeNameParser { private System.Reflection.Assembly ResolveAssembly(string assemblyName) { ... } } 
        System.Reflection.TypeNameParser { private System.Type GetType(string typeName, System.ReadOnlySpan<string> nestedTypeNames, string assemblyNameIfAny) { ... } } 
        System.Reflection.TypeNameParser { internal static System.RuntimeType GetTypeHelper(System.Char* pTypeName, System.Reflection.RuntimeAssembly requestingAssembly, bool throwOnError, bool requireAssemblyQualifiedName) { ... } } 
        System.Reflection.CustomAttribute { private static object _CreateCaObject(System.Reflection.RuntimeModule pModule, System.RuntimeType type, System.IRuntimeMethodInfo pCtor, System.Byte** ppBlob, System.Byte* pEndBlob, System.Int32* pcNamedArgs) { ... } } 
        System.Reflection.CustomAttribute { private static void AddCustomAttributes(System.ListBuilder<>& attributes, System.Reflection.RuntimeModule decoratedModule, int decoratedMetadataToken, System.RuntimeType attributeFilterType, bool mustBeInheritable, System.RuntimeType.ListBuilder<object> derivedAttributes) { ... } } 
        System.Reflection.CustomAttribute { private static object[] GetCustomAttributes(System.Reflection.RuntimeModule decoratedModule, int decoratedMetadataToken, int pcaCount, System.RuntimeType attributeFilterType) { ... } } 
        System.Attribute { public static System.Attribute[] GetCustomAttributes(System.Reflection.Assembly element, System.Type attributeType, bool inherit) { ... } } 
        System.Reflection.CustomAttributeExtensions { public static System.Collections.Generic.IEnumerable<> GetCustomAttributes(System.Reflection.Assembly element) { ... } } 
        VL.AppServices.VLTypeInfoFactory+<GetTypeInfos>d__9 { private virtual bool MoveNext() { ... } } 
        VL.AppServices.TypeRegistryImpl { private System.Collections.Immutable.ImmutableArray<VL.Core.IVLTypeInfo> <get_RegisteredTypes>g__Compute|10_0() { ... } } 
        VL.AppServices.TypeRegistryImpl { public virtual System.Collections.Immutable.ImmutableArray<VL.Core.IVLTypeInfo> get_RegisteredTypes() { ... } } 
        VL.AppServices.TypeRegistryImpl { private VL.Core.IVLTypeInfo FromNameAndCategory(string name, string category) { ... } } 
        VL.AppServices.TypeRegistryImpl { private VL.Core.IVLTypeInfo FromUngenericType(Irony.Parsing.ParseTreeNode x) { ... } } 
        VL.AppServices.TypeRegistryImpl { private VL.Core.IVLTypeInfo FromType(Irony.Parsing.ParseTreeNode x) { ... } } 
        VL.AppServices.TypeRegistryImpl { private VL.Core.IVLTypeInfo FromType(Irony.Parsing.ParseTreeNode x) { ... } } 
        VL.AppServices.TypeRegistryImpl { private VL.Core.IVLTypeInfo <GetTypeByName>b__12_0(string name) { ... } } 
        System.Collections.Concurrent.ConcurrentDictionary`2 { public TValue GetOrAdd(TKey key, System.Func<, > valueFactory) { ... } } 
        VL.AppServices.TypeRegistryImpl { public virtual VL.Core.IVLTypeInfo GetTypeByName(string typeName) { ... } } 
        VL.AppServices.Serialization.SerializationContextV2 { protected virtual System.Type DoResolveType(string typeName) { ... } } 
        VL.AppServices.Serialization.SerializationContextInternal { internal System.Type ResolveType(string fullName, System.Type staticType) { ... } } 
        VL.AppServices.Serialization.SerializationContextInternal { public virtual object Deserialize(object content, string name, System.Type staticType) { ... } } 
        VL.AppServices.Serialization.SerializationServiceImpl { protected virtual object Deserialize(VL.Core.NodeContext nodeContext, object content, System.Type type, bool throwOnError, bool pathsAreRelativeToDocument, System.Collections.Generic.IReadOnlyList<>& errorMessages) { ... } } 
        VL.Core.SerializationService { public object Deserialize(VL.Core.NodeContext nodeContext, object content, System.Type type, bool pathsAreRelativeToDocument) { ... } } 
        VL.Core.Serialization { internal static object Deserialize(VL.Core.NodeContext nodeContext, System.Xml.Linq.XElement content, System.Type staticType) { ... } } 
        VL.Core.Serialization { public static T Deserialize(VL.Core.NodeContext nodeContext, System.Xml.Linq.XElement content) { ... } } 
        VL.HDE.WindowContext { private object <get_WindowModel>g__Deserialize|14_0() { ... } } 
        VL.HDE.WindowContext { public object get_WindowModel() { ... } } 
        VL.HDE.PatchEditor.EditorControl { private virtual VL.HDE.IWindow VL.HDE.IWindowFactory.Create(VL.HDE.WindowContext context) { ... } } 
        VL.HDE.WindowContext { internal void TryCreateWindow(bool show) { ... } } 
        VL.HDE.WindowManager { private VL.HDE.WindowContext CreateContext(VL.HDE.WindowDescription windowDescription, bool show) { ... } } 
        VL.HDE.WindowManager { public VL.HDE.IWindow CreateWindow(VL.HDE.WindowDescription windowDescription, bool show) { ... } } 
        VL.HDE.WindowManager { public VL.HDE.IWindow CreateWindow(string name, object windowModel, System.Nullable<Stride.Core.Mathematics.RectangleF> bounds, bool show) { ... } } 
        VL.HDE.PatchEditor.EditorControl { private VL.HDE.PatchEditor.CanvasWindow NewCanvas(VL.Model.Canvas canvas, bool show) { ... } } 
        VL.HDE.PatchEditor.EditorControl { public VL.HDE.PatchEditor.CanvasWindow OpenCanvas(VL.Model.Canvas canvas, VL.Model.Element focusedElement, bool show) { ... } } 
        VL.HDE.PatchEditor.EditorControl+<>c__DisplayClass36_0 { internal bool <ShowDocument>g__ShowAppPatch|0(System.Func<VL.Model.Canvas, bool> askagain) { ... } } 
        VL.HDE.PatchEditor.EditorControl { public void ShowDocument(VL.Model.Document document, VL.HDE.PatchEditor.ShowSpecialPatch showSpecialPatch) { ... } } 
        VL.UI.Forms.SessionManager { private void ShowEditor(VL.HDE.MainForm mainForm, System.Collections.Immutable.ImmutableArray<VL.Model.Document> documents) { ... } } 
        VL.UI.Forms.SessionManager+<InitializeAsync>d__54 { private virtual void MoveNext() { ... } } 
        System.Runtime.ExceptionServices.ExceptionDispatchInfo { public void Throw() { ... } } 
        System.Runtime.CompilerServices.TaskAwaiter { private static void ThrowForNonSuccess(System.Threading.Tasks.Task task) { ... } } 
        System.Runtime.CompilerServices.TaskAwaiter { private static void HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task task, System.Threading.Tasks.ConfigureAwaitOptions options) { ... } } 
        VL.UI.Forms.SessionManager+<>c__DisplayClass16_0+<<Run>g__InitAsync|4>d { private virtual void MoveNext() { ... } } 
        System.Runtime.ExceptionServices.ExceptionDispatchInfo { public void Throw() { ... } } 
        System.Runtime.CompilerServices.TaskAwaiter { private static void ThrowForNonSuccess(System.Threading.Tasks.Task task) { ... } } 
        System.Runtime.CompilerServices.TaskAwaiter { private static void HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task task, System.Threading.Tasks.ConfigureAwaitOptions options) { ... } } 
        VL.UI.Forms.SessionManager+<>c__DisplayClass16_0+<<Run>g__Init|2>d { private virtual void MoveNext() { ... } } 

Time flies, last update was using vvvv_gamma_2021.4.0-0613
I guess there isn’t an easy recovery

Hi @lasal. 2 questions

  1. Do you have some backup files?
  2. is there a chance you don’t have the Kinect installed the same way for each vvvv copy?

Installing the Kinect Runtime (as linked to in GitHub - vvvv/VL.Devices.Kinect2: A package for using Kinect2 depth cameras by Microsoft in VL) did the trick for me. But yes, that the UI doesn’t even open is a bit harsh.

Oh and also the latest version of VL.Devices.Kinect2 (1.3.1 as the time of writing).

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.