Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Manual upgrade from v4.3 to v5.+

$
0
0
Important note

Composite.Data.Types.IPage files should be modified as well. After the upgrade I was not able to edit any pages in the composite back office. When I looked into the composite logs I found this error:

[Critical WorkflowFacade  System.InvalidOperationException: The element attribute 'CreationDate' is missing from the xml file
at CompositeGenerated.DynamicXmlDataProvider.Composite_Data_Types_IPageWrapper.get_CreationDate()
at CompositeGenerated.DataWrappers.Composite_Data_Types_IPageWrapper.get_CreationDate()
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.]

The data was stored as an xml file, so I added CreationDate attribute equal to ChangeDate and CreatedBy attribute equal to ChangedBy. After that I restarted the server via composite back office, so that Composite.Generated.dll will be regenerated again. After that the problem was resolved. It is also important not to replace the file on live or add some crazy values into CreationDate, composite behaviour might be unpredictable. In my case after replacing the file all the pages dissapeared from composite, maybe because it was made when the project was launched locally. In case you are using an sql database, adding a column should be enough and always do a backup before performing such things

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>