Can you reproduce this on other cms 6 sites? Could you post a repro for this?
EPiServer Development Team
This is a shot in the dark, but has the PropertySettings class or the class of any property in the PropertySettings class had their names/namespaces changed? I think I saw errors like this once when I was working with DDS (not PropertySettings specifically though) and was playing around with renaming classes, deleting properties, remapping etc.
Off the top of my head this is what we did:
Now the status is that saving local property settings inside a page type works as expected. Loading the global settings ui for the property also works great. But when saving the error above occurs.
In another EPiServer 6 site (also upgraded from 5) we get the same error when trying "Save as copy" for TinyMCE editor settings. Creating new global settings works there though.
I assume you changed properties on a class that implements IPropertySettings. When you do this (also for any class whose instances are stored in the DDS) you need to re-map the type in the DDS.
To make life easier when trying stuff out you can add an initialization module to you project and then check if you type's schema matches that in the DDS. If it doesn't then you can re-map it. I would recommend that you remove this before the code goes live as you probably want to have better control over when types are re-mapped as this can be an expensive operation if there is alot of data in the DDS for you type. See below for an example:
public class InitializationModule : IInitializableModule
#region IInitializableModule Members
public void Initialize(EPiServer.Framework.Initialization.InitializationEngine context)
StoreDefinition existingDef = StoreDefinition.Get(typeof(MyPropertySettings).FullName);
if (existingDef != null)
if (!existingDef.ValidateAgainstMappings(typeof(MyPropertySettings), false))
public void Preload(string parameters)
throw new NotImplementedException();
public void Uninitialize(EPiServer.Framework.Initialization.InitializationEngine context)
In terms of sorting out your existing problem then the easiest would be to start with a clean database. If this is not practical then you will need to manually remove the offending data from the DDS tables. Send me an email to paul [dot] smith [at] episerver.com if you need this and I will try and help you.
Thanks Paul for this and the e-mail on the side.
For others interest I backed up my DB and ran these SQL-commands:
Exec BigTableDeleteAll @ViewName = '[VW_EPiServer.Core.PropertySettings.PropertySettingsGlobals]' Exec BigTableDeleteAll @ViewName = '[VW_EPiServer.Core.PropertySettings.PropertySettingsWrapper]' -- xxx is the fully qualified namespace and class for your IPropertySettings implementation Exec BigTableDeleteAll @ViewName = '[xxx]' -- xxx is the fully qualified namespace and class for your IPropertySettings implementation Delete from tblBigTableStoreInfo where StoreName = 'xxx'I also added the initmodule above. Now I'm back to normal when saving property settings.
Hey Guys, I have the same issue. But the"existingDef" is null.
StoreDefinition existingDef = StoreDefinition.Get(typeof(ProductPickerProperty).FullName);
What should i do? I don't get what typeof i should put?
What i have done is to add a new EPiServer.Business.Commerce.Plugins.ProductPicker.SpecializedProperties.ProductPickerProperty, and i want to put a default template (ascx) to the property.
the url to Add Settings is (/CMS/Admin/EditPageTypeGlobalSettings.aspx?value=EPiServer.Business.Commerce.Plugins.ProductPicker.SpecializedProperties.ProductPickerPropertyControl,%20XXX.Externweb.Web,%20Version=0.6.0.0,%20Culture=neutral,%20PublicKeyToken=null)
I also have the same save problem in Edit global settings for TinyMCE (EPiServer.SpecializedProperties.PropertyXhtmlString), Should i use EPiServer.Editor.TinyMCE.ToolbarRow? or EPiServer.Editor.TinyMCE.TinyMCESettings? Please explaine better? if a do so, none is passing throu to "if (!existingDef.ValidateAgainstMappings(...."
And why should i do the things Johan Kronberg maid, what does it do?
The propertysettings DDS has crashed somehow and I'm now always getting this error when saving global property settings. What can be done to solve the problem?
Server Error in '/' Application.
Object reference not set to an instance of an object.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.NullReferenceException: Object reference not set to an instance of an object.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927