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

New Post: Error WorkflowFacade  System.InvalidOperationException: The type CompositeGenerated.DynamicXmlDataProvider.Composite_Data_Types_IPageDataId could not be found

$
0
0
troikkonen wrote:
Unfortunately the error appears to be the same:
It isn't exactly the same :)

Before it was in
UserPermissionDefinitionProvider
and not it is in
UserGroupPermissionDefinitionProvider

Removing a similar record from the IUserGroupPermissionDefinition data type should fix it.

troikkonen wrote:
but I cannot see the new static data type in the Data section of the C1 Console
Try putting the following code in the same dll, where you have the defined data types. We'll update the related documentation page
using System.Linq;
using Composite.Core.Application;
using Composite.Data;
using Composite.Data.DynamicTypes;

namespace YourWebsiteName
{
    [ApplicationStartup]
    public static class StatupHandler
    {
        public static void OnBeforeInitialize() {}

        public static void OnInitialized()
        {
            var dataTypes = typeof(StatupHandler).Assembly.GetTypes().Where(typeof(IData).IsAssignableFrom);

            foreach (var dataType in dataTypes)
            {
                DynamicTypeManager.EnsureCreateStore(dataType);
            }
        }
    }
}

Viewing all articles
Browse latest Browse all 2540

Trending Articles