new errors with dll files

lawrence whittemore asked on September 8, 2023 17:28

we're getting a couple new errors that seemed to have just started over night for no reason.

Message: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Message: Resolution of 'CMS.Helpers.Caching.Abstractions.ICacheAccessor' failed with the following error: Could not load file or assembly 'Microsoft.Extensions.Logging.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)

It's interesting, that one error is showing on one server while the other is showing on our other server.

Any thoughts? the dlls are all in the bin folder.

Recent Answers


Dmitry Bastron answered on September 11, 2023 09:36

Hi Lawrence,

Is it .net core or mvc 5? How these applications are hosted - on IIS on virtual machines, or using App Services?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 11, 2023 09:43

What changes were made recently? Not only in Kentico but also in the environment? Have you tried opening the solution in VS and rebuilding it?

0 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on September 11, 2023 13:57

I think what might be part of the issue is, we're trying to set this up https://docs.xperience.io/configuring-xperience/scheduling-tasks/installing-the-scheduler-windows-service because emails are getting stuck in the queue when no one is using the admin.

We turned off that scheduled service that we set up and it seems to have stopped the errors.

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on September 11, 2023 17:12

Could it be that you changed the location of the scheduled service from bin folder? Also worth checking that SchedulerService.exe is from the same version of Kentico you are using, and not left over from previous version if you were doing upgrade or something.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 12, 2023 05:16

Good catch Dmitry - I would maybe apply hotfix on the setup files to match the hotfix version applied on the project too!

0 votesVote for this answer Mark as a Correct answer

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