Dynamic Data Store Remap EPiServer.Core.PageObject
Updated
Error
The Type 'EPiServer.Core.PageObject' needs to be remapped in the Dynamic Data Store, see the Errors collection for more information. Remapping can be done by applying the EPiServer.Data.Dynamic.EPiServerDataStoreAttribute attribute to the type, setting its AutomaticallyRemapStore property to true and ensuring the <episerver.dataStore><dataStore> autoRemapStores attribute in web.config is set to true (or is not defined). Alternatively call the Upgrade-EPiRemapDDSTypes cmdlet from Powershell.
Code below to fix this issue
Remember to backup your database before hand!
namespace EPiServerSample { [InitializableModule] [ModuleDependency(typeof(EPiServer.Web.InitializationModule))] public class TestInit : IInitializableModule { public void Initialize(InitializationEngine context) { var def = StoreDefinition.Get("EPiServer.Core.PageObject"); def.Remap(typeof(PageObject)); def.CommitChanges(); } public void Preload(string[] parameters) { } public void Uninitialize(InitializationEngine context) { //Add uninitialization logic } } }
Please sign in to leave a comment.