November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Anyone solved this issue. I have the same ting but that is when we import /transfer data from one instance to an other instance of EpiServer. It seems like bug?!
2015-11-09 10:47:34,422 [817] ERROR EPiServer.Core.Transfer.TransferLogger: 10.5.3 Export/import error: Exception: Invalid use of read-only object, call CreateWritableClone() to create a writable clone.
System.NotSupportedException: Invalid use of read-only object, call CreateWritableClone() to create a writable clone.
at EPiServer.Data.Validator.ValidateNotReadOnly(IReadOnly readOnly)
at EPiServer.DataAbstraction.ContentType.set_Name(String value)
at SCommerce.Hay.Core.Models.Containers.ProductConfigurator.ProductConfigurationRootContainerModel.SetDefaultValues(ContentType contentType) in d:\BuildAgent\work\9788132fe6f896ff\Src\SCommerce.Hay.Core\Models\Containers\ProductConfigurator\ProductConfigurationRootContainerModel.cs:line 33
at EPiServer.Construction.ContentDataBuilder.ActionRecursively(IContentData contentData, ContentType contentType, Action`2 action)
at EPiServer.Construction.ContentDataBuilder.AddProperties(IContentData contentData, BuildingContext buildingContext)
at EPiServer.Construction.ContentFactory.CreateContent(ContentType contentType, BuildingContext buildingContext)
at EPiServer.Commerce.Catalog.Provider.Construction.CatalogContentFactory.CreateContent(ContentType contentType, BuildingContext buildingContext)
at EPiServer.Core.DefaultContentRepository.GetDefault[T](ContentReference parentLink, Int32 contentTypeID, CultureInfo language)
at EPiServer.Core.Transfer.ContentTransfer.CreateDefaultContent(Dictionary`2 propertyStringLookup, ContentReference parentLink, Boolean& isUsingPrototype)
at EPiServer.Core.Transfer.ContentTransfer.HasContentChanged(Dictionary`2 propertyStringLookup, ContentReference parentLink, IContent& content, Boolean& newContent)
at EPiServer.Core.Transfer.ContentTransfer.Import(RawContent rawContent, AccessLevel requiredDestinationAccess, Guid& importedPageGuid)
at EPiServer.Core.Transfer.ContentTransfer.Import(ITransferContentData content, AccessLevel requiredDestinationAccess)
at EPiServer.Enterprise.DataImporter.ImportContents[T](XmlTextReader reader, ZipPackage package)
at EPiServer.Enterprise.DataImporter.ImportStream(ZipPackage package, XmlTextReader reader, String partName)
at EPiServer.Enterprise.DataImporter.ImportRaw(ZipPackage package)
at EPiServer.Enterprise.DataImporter.Import()
Hej Peter Neuss could you write your code snippet here, where you use SetDefaultValues(contentType) ? how do you populate default value.?
I have used the override of SetDefaultValues many times with no problems to set values of properties. Now, however, I have a property which is a CategoryList and I get an error when I try to set it is SetDefaultValues. Error log reproduced below.
Anothe thing which is confusing me is that, when debugging this code, the method SetDefaultValues is called twice. As soon as I create the new page it is called. Then I am prompted for a name for the page, and the method is executed again. Why is this?
Thanks.
Error log: