Hi!
I've not seen this error in production but I think we had a bug when developing. Have you upgraded your site from EPiServer 7 to 7.5?
Hi Linus,
No, my site is built from 7.5 (7.5.394.2) and it's running normally. I can add/remove any gadget, build-in gadgets, our gadget without any problem previously.
But one day, when I try to add Version list gadget back and got error. We have same code base/database on other server and still work pretty well.
Further down, I find out that the object was return from LocalCache and which is an error object. How could we clear LocalCache to force do remap is required?
Hi again Dzung!
Unfortunately, I have no direct answer to this. If you can't resolve it I suggest that you open a support case for this.
Regards
Linus
Thanks Linus.
I'm manage to fix it by manually get StoreDefinition for ComponentData and do remap it.
For reference, we had exact same issue, here is the code that fixed this problem:
var storeDefinition = StoreDefinition.Get(DynamicDataStoreFactory.Instance.GetStoreNameForType(typeof(ComponentData))); storeDefinition.Remap(typeof(ComponentData)); storeDefinition.CommitChanges();
Hi Andrzej!
We have this error too, but where should we put your code sample? In what file?
You should be able to put this code anywhere, just run it once and then remove it, as it will be no longer needed.
Hi,
I've a site running normally, but somehow it's suddenly saying error when trying to add new gadget. I've tried with all built-in gadget like version linst.
The exception return from application is
The Type 'EPiServer.Shell.Storage.ComponentData' 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.
I try to query from database for store, but result is empty. I wonder if something cause this issue and clear all personalize setting. Anyone know how to reset this to default so it's work again?
All other function work normally, just can't add new gadget