OK, I tried changing that:
#region Data field attributes
[ImmutableFieldId("902d6404-6b70-429b-b909-e3ce487a180d")]
[StoreFieldType(PhysicalStoreFieldType.Guid)]
[NotNullValidator()]
[GuidNotEmpty()]
[FieldPosition(4)]
[DefaultFieldGuidValue("00000000-0000-0000-0000-000000000000")]
[ForeignKey("ChapmanComposite.Division,ChapmanStaticDataTypes", AllowCascadeDeletes=true, NullReferenceValue="{00000000-0000-0000-0000-000000000000}")]
#endregion
Guid Division { get; set; }
But it still doesn't work. :-(20140331 08:20:21.0486 2 10 Warning XmlDataProvider Failed to clean up ghost file 'C:\C\R\C1\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml'.
20140331 08:20:21.0526 2 10 Warning XmlDataProvider Failed to clean up ghost file 'C:\C\R\C1\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml'.
20140331 08:20:21.0536 2 10 Warning XmlDataProvider Failed to clean up ghost file 'C:\C\R\C1\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml'.
20140331 08:20:27.0135 2 10 Warning XmlDataProvider Failed to clean up ghost file 'C:\C\R\C1\App_Data\Composite\DataStores\Composite.Data.Types.IFlowInformation_Published.xml'.
20140331 08:20:54.1661 2 6 Warning ConsoleMessageQueue Deserialization of message #2 failed with an 'FileNotFoundException' exception - the message has been dropped. Details: 'Could not load file or assembly 'App_Web_flhjk5x1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.'
20140331 08:21:08.5099 2 11 Error WorkflowFacade Workflow terminated - Id = 81ac3dd6-68ee-4b8f-99fb-20c841b6bdb9, Exception:
20140331 08:21:08.5109 2 11 Error WorkflowFacade System.TypeLoadException: Could not load type 'ChapmanComposite.Division' from assembly 'Composite, Version=4.1.5058.34326, Culture=neutral, PublicKeyToken=null'.
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Composite.Data.DynamicTypes.DataTypeDescriptorFormsHelper.GenerateForm()
at Composite.Plugins.Elements.ElementProviders.GeneratedDataTypesElementProvider.AddNewDataWorkflow.step1CodeActivity_ExecuteCode(Object sender, EventArgs e)
at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)
at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run()
20140331 08:21:08.6792 2 11 Critical WorkflowFacade System.TypeLoadException: Could not load type 'ChapmanComposite.Division' from assembly 'Composite, Version=4.1.5058.34326, Culture=neutral, PublicKeyToken=null'.
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Composite.Data.DynamicTypes.DataTypeDescriptorFormsHelper.GenerateForm()
at Composite.Plugins.Elements.ElementProviders.GeneratedDataTypesElementProvider.AddNewDataWorkflow.step1CodeActivity_Execute