EtchUK/Etch.OrchardCore.SEO

Exception when enabling 301 redirects module

Closed this issue · 2 comments

Issue is related to an exception within the data migration.

2019-03-22 15:07:20.9564|Default|0HLLER042K18S:00000004||OrchardCore.Data.Migration.DataMigrationManager|ERROR|Error while running migration version 1 for 'Moov2.OrchardCore.SEO.Redirects'. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'YesSql.Sql.SchemaBuilder OrchardCore.Data.Migration.DataMigration.get_SchemaBuilder()'.
   at Moov2.OrchardCore.SEO.Redirects.Migrations.UpdateFrom1()
   --- End of inner exception stack trace ---

Tried debugging this but wasn't able to replicate the issue. With that in mind, it's likely how this module is packaged up and referenced via NuGet.

Proved this by running a site locally that referenced the NuGet package and the following error displays when enabling the module.

image

Adding reference to OrchardCore.Data.Abstractions fixed the issue 👍