The assemblies for 'CMS' have not been updated to work with the current database version '7068.0'. Supported database version is '7066.0'. Make sure t

Vote:
 
Hi friends.

I'm having trouble updating from

nuget EPiServer.CMS.Core 11.11.3

to

nuget EPiServer.CMS.Core 11.20.7

I have searched all the forums and apparently the only solution I am finding is to perform

update-epidatabase

but the problem persists.

How can i fix this?

Thank you so much.

Server Error in '/' Application.

The assemblies for 'CMS' have not been updated to work with the current database version '7068.0'. Supported database version is '7066.0'. Make sure the NuGet packages are updated and build the solution.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotSupportedException: The assemblies for 'CMS' have not been updated to work with the current database version '7068.0'. Supported database version is '7066.0'. Make sure the NuGet packages are updated and build the solution.

Source Error:

[No relevant source lines]

Source File: c:\Users\dseisdedos\AppData\Local\Temp\Temporary ASP.NET Files\vs\0bd82adc\38b68794\App_global.asax.upgvqtdu.0.cs    Line: 0

Stack Trace:

[NotSupportedException: The assemblies for 'CMS' have not been updated to work with the current database version '7068.0'. Supported database version is '7066.0'. Make sure the NuGet packages are updated and build the solution.]
   EPiServer.Data.SchemaUpdates.Internal.DatabaseSchemaManagerImplementation.ThrowUpdateCodeException(String displayName, Version databaseVersion, Version requiredVersion) +118
   EPiServer.Data.SchemaUpdates.Internal.DatabaseSchemaManagerImplementation.EnsureDatabaseSchema(DataAccessOptions dataAccessOptions) +606
   EPiServer.Data.DataInitialization.ValidateDatabaseSchema(InitializationEngine context) +85
   EPiServer.Data.DataInitialization.Initialize(InitializationEngine context) +25
   EPiServer.Framework.Initialization.Internal.<>c__DisplayClass2_0.<Initialize>b__0() +19
   EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +52
   EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) +80
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +179
 
#261136
Aug 26, 2021 9:41
Vote:
 

Looks like your assemblies are old one. Can you make sure you have episerver.dll 11.20.7 in your bin folder?

#261139
Aug 26, 2021 12:13
Vote:
 

I just checked the .net reflector dll it tells me I have v 11.20.7 of episerver.dll

I have updated EPiServer.CMS.Core
and now when I want to put a previous version back I get this message

The assemblies for 'CMS' have not been updated to work with the current database version '7068.0'. Supported database version is '7066.0'. Make sure the NuGet packages are updated and build the solution.


to fix it on my locoalhost I have removed the database and rebuilt. now the problem is the server.
 
#261140
Edited, Aug 26, 2021 12:27
Vote:
 

world.optimizely.com/forum/developer-forum/Developer-to-developer/Thread-Container/2017/12/my-database-version-7048-is-ahead-of-what-my-code-expects-7047/

I have solved it as they comment in this forum;

ALTER PROCEDURE [dbo].[sp_DatabaseVersion]
AS
    RETURN 7066

                        
#261180
Aug 27, 2021 8:40
Vote:
 

That is a way to solve it, but it can be dangerous because you don't know which SP or tables have changed. 7068 is indeed the correct version for cms.core 11.20.7, so I don't know why though

#261182
Aug 27, 2021 10:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.