Skip to content

V17 - Error running package migration #46

@dawoe

Description

@dawoe

Search Version : alpha.6
CMS Version : 17.1.0

After upgrading to alpha.6 I get several errors on the pickage migrations during startup of the application :

System.TypeLoadException: Could not load type 'NPoco.TableNameAttribute' from assembly 'NPoco, Version=6.1.0.0, Culture=neutral, PublicKeyToken=null'.
at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctorWithParameters, Boolean& isVarArg) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
at Umbraco.Extensions.TypeExtensions.FirstAttribute[TAttribute](Type type, Boolean inherit)
at Umbraco.Extensions.TypeExtensions.FirstAttribute[TAttribute](Type type)
at Umbraco.Cms.Infrastructure.Persistence.DatabaseModelDefinitions.DefinitionFactory.GetTableDefinition(Type modelType, ISqlSyntaxProvider sqlSyntax)
at Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Table.CreateTableOfDtoBuilder.Do()
at Umbraco.Cms.Search.Core.Persistence.Migration.CustomPackageMigration.MigrateAsync()
at Umbraco.Cms.Infrastructure.Migrations.AsyncMigrationBase.RunAsync()
at Umbraco.Cms.Infrastructure.Migrations.MigrationPlanExecutor.RunMigrationAsync(Type migrationType, MigrationContext context)
at Umbraco.Cms.Infrastructure.Migrations.MigrationPlanExecutor.RunScopedMigrationAsync(Transition transition, MigrationPlan plan)
at Umbraco.Cms.Infrastructure.Migrations.MigrationPlanExecutor.RunMigrationPlanAsync(MigrationPlan plan, String fromState)

System.TypeLoadException: Could not load type 'NPoco.Sql`1' from assembly 'NPoco, Version=6.1.0.0, Culture=neutral, PublicKeyToken=null'.
at Umbraco.Cms.Search.Core.Persistence.IndexDocumentRepository.GetAsync(Guid id, Boolean published)
at Umbraco.Cms.Search.Core.Persistence.IndexDocumentRepository.GetAsync(Guid id, Boolean published)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Umbraco.Cms.Search.Core.Persistence.IndexDocumentRepository.GetAsync(Guid id, Boolean published)
at Umbraco.Cms.Search.Core.Services.ContentIndexing.IndexDocumentService.GetAsync(Guid id, Boolean published)
at Umbraco.Cms.Search.Core.Services.ContentIndexing.ContentIndexingDataCollectionService.CollectAsync(IContentBase content, Boolean published, CancellationToken cancellationToken)
at Umbraco.Cms.Search.Core.Services.ContentIndexing.PublishedContentChangeStrategy.UpdateIndexAsync(IndexInfo[] indexInfos, IContentBase content, CancellationToken cancellationToken)
at Umbraco.Cms.Search.Core.Services.ContentIndexing.PublishedContentChangeStrategy.ReindexAsync(IndexInfo[] indexInfos, IContentBase content, Boolean forceReindexDescendants, CancellationToken cancellationToken)
at Umbraco.Cms.Search.Core.Services.ContentIndexing.PublishedContentChangeStrategy.RebuildAsync(IndexInfo indexInfo, CancellationToken cancellationToken)
at Umbraco.Cms.Search.Core.Services.ContentIndexing.ContentIndexingService.RebuildAsync(IndexRegistration indexRegistration, CancellationToken cancellationToken)
at Umbraco.Cms.Search.Core.Services.ContentIndexing.ContentIndexingService.<>c__DisplayClass6_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.<>c__DisplayClass7_1.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Umbraco.Cms.Infrastructure.HostedServices.QueuedHostedService.BackgroundProcessing(CancellationToken stoppingToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions