Hello,
I have a C# application using the Composite UI Application Block. I have a separate project with the module, and I have a custom moduleinit class defined as public, which the Load method does not fire. I have the ServiceDependency attribute defined at the constructor level and for properties; neither work; load doesn't fire.
public
class ACDModuleInit : ModuleInit{
private IWorkItemTypeCatalogService _catalog; private WorkItem _workItem;//[InjectionConstructor()] //public ACDModuleInit([ServiceDependency()] WorkItem workItem) //{ // _workItem = workItem; //}
[
ServiceDependency()] public IWorkItemTypeCatalogService Catalog{
set { _catalog = value; }}
[
ServiceDependency()] public WorkItem WorkItem{
set { _workItem = value; }}
public override void Load(){
base.Load(); IWorkspace left = _workItem.Workspaces["left"]; IWorkspace right = _workItem.Workspaces["right"]; IWorkspace content = _workItem.Workspaces["content"];_catalog.RegisterWorkItem<
ACDWorkItem>(); ACDWorkItem item = _workItem.WorkItems.AddNew<ACDWorkItem>();item.Show(content, left, right);
}
}
Does anybody know why, and what it is related to Also, in the hands-on lab, the DLL to the project is in the bin\debug folder of the windows shell application; however, the reference to the module isn't added; how is the DLL being copied upon compiling, yet there isn't a reference created
Thanks.

CAB Custom ModuleInit Not Firing
dkorsunsky
I have the same problem.Have you got it resolved
alex2308
Can you be more clear on where exactly your problem is Could you please put them in point-wise, so that we can understand it better and can try to help you...
Thank you,
Bhanu.
Jamie Eckman
I have resolved it.There are two key points
1.You should set the property "copy to out put directory" of ProfileCatalog.xml to copy always.
2.You should set the ACDModuleInit dll out put path to the Main Form out put path.
Thanks