Kentico Xperience import toolkit 13 error

H Shah asked on October 10, 2023 20:54

Hi,

I am getting an error during importing data from Kentico 7 to 13.

An error occurred on import: Could not load file or assembly 'Microsoft.Extensions.FileProviders.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I am receiving this error during step 8 - Import Data.

Can you please advise?

Thank you

Correct Answer

Juraj Ondrus answered on October 26, 2023 12:48

So, we got a report from another customer and this time I believe we got the missing piece of this puzzle! After the investigation it turns out that the problem is most likely caused by smart search!
The issue was fixed in hotfix no.129. Please apply the latest hotfix and do not forget to apply it on the setup files/external utilities.
So, if the page types have the search enabled for their fields, then while import in progress, the smart search tries to index the data and there is some old reference somewhere, which throws the error.
So, one workaround would be disabling the search for the page type fields or, maybe a better one is adding this into the ImportToolkit.exe.config file (typically located at C:\Program Files (x86)\Kentico\13.0\Bin\ImportToolkit.exe.config)

  <dependentAssembly>
    <assemblyIdentity name="Microsoft.Extensions.FileProviders.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-3.1.8.0" newVersion="3.1.8.0" />
  </dependentAssembly>

Make sure you have backups ready! Just in case.
Our developers are currently working on a fix...

0 votesVote for this answer Unmark Correct answer

Recent Answers


Andre Burgoyne answered on October 19, 2023 21:12

Has any progress been made on this request? I am facing the same error that H Shah is seeing. I can run the toolkit all the way through to "Step 8 - Importing data" where I see the following error:

An error occurred on import: Could not load file or assembly 'Microsoft.Extensions.FileProviders.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have uninstalled/reinstalled Kentico using the Xperience_13_Refresh_10 installer. The target CMS site does not contain a reference to v3.1.0 of the Microsoft.Extensions.FileProviders.Abstractions DLL, but it is showing v3.8.0. I've verified the DLL redirect is not in the ImportToolkit.exe.config file. I have also spun up a completely new CMS site (located directly on the root of my PC) to use as a target for the import and I get the same error. Multiple members of my team are facing this error, while 1 has been able to run the import successfully (with the exact same CMS site as the target).

Running Fusion++ while attempting an import has not yielded any results, as the DLL that is throwing the error has not appeared in the Fusion logs. Event Log in the CMS is showing that my import is starting, as I see the CREATEDOC log for the first page, but then nothing after that.

I don't believe the error is with the target CMS site, but I am not sure where that DLL would be called from? Kentico Support over email has stated that DLL is only used in the CMS site... v3.1.0 is a very dated version though (I believe v7 is the most recent) so a newly installed CMS using .NET Framework 4.8 should not have a reference to the outdated DLL.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 20, 2023 05:16

We were unable to reproduce the issue so far. What is your environment setup? Are you able to reproduce the issue on any computer?

0 votesVote for this answer Mark as a Correct answer

Andre Burgoyne answered on October 20, 2023 17:27

My computer where I see this error has a few Kentico repos (CMS and presentation sites), all ranging from .NET Framework 4.6.2, 4.7.1, 4.8, and .NET 6. Others on my team (with similar setups) are also seeing the error.

I have tried clearing the .NET cache as mentioned above before running the import, but that has not resolved the issue.

0 votesVote for this answer Mark as a Correct answer

H Shah answered on October 20, 2023 19:48

@Juraj, I am able to reproduce on another machine as well.

0 votesVote for this answer Mark as a Correct answer

Andre Burgoyne answered on October 23, 2023 06:01

My local environment is Windows 11 version 22H2. IIS version 10.0.22621.1. .NET Framework 4.8 (for target project project).

My source is as Azure hosted SQL database used for a Kentico 10 site (.NET Framework 4.6.2), and my target is a .NET framework 4.8 Kentico Xperience 13 site. The target connection string is also an Azure hosted SQL database.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 25, 2023 08:33

Just one more idea - what is the version of the ImportToolkit.exe file in the setup files installation folder? If it is not the latest hotfix, could you please apply the hotfix on the setup files too?

0 votesVote for this answer Mark as a Correct answer

H Shah answered on October 25, 2023 22:34

Importtoolkit.exe version is 13.0.115.21129.

Which hotfix number should I use?

0 votesVote for this answer Mark as a Correct answer

Andre Burgoyne answered on October 27, 2023 21:05

Thanks for the update, Juraj. I attempted to add the assembly to ImportToolkit.exe.config and that resolved my error. I haven't gotten any database timeouts yet, and everything seems to be importing OK.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.