I wrote application with Spring.Net. When I try call to GetObject("...") of the Spring.Net I have got an exception:
No object named 'SystemConfiguration_Workspace_NewWorkspaceAction' is defined : Cannot find definition for object [SystemConfiguration_Workspace_NewWorkspaceAction]
But I have object named 'SystemConfiguration_Workspace_NewWorkspaceAction' in my XML.
<?xml version="1.0" encoding="utf-8" ?>
<spring>
<typeAliases>
<alias name="ContextMenuItemModelAlias" type="ElmoMotionControl.View.Model.ContextMenuItemModel, ElmoMotionControl.View.Model"/>
</typeAliases>
<objects xmlns="http://www.springframework.net" >
<!--<description>An example that demonstrates simple IoC features.</description>-->
<object id="WorkspaceTreeModel" type="ElmoMotionControl.View.Model.ContextMenuModel, ElmoMotionControl.View.Model" >
<property name="ContextMenus" ref="WorkspaceTreeModelDicProp"/>
</object>
<!-- _______________________The dictionary item______________________ -->
<object id ="WorkspaceTreeModelDicProp" type="System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<ContextMenuItemModelAlias>>>">
<constructor-arg>
<dictionary key-type="string" value-type="System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<ContextMenuItemModelAlias>>">
<entry key="SystemConfiguration_Workspace" value-ref="SystemConfiguration_Workspace"/>
</dictionary>
</constructor-arg>
</object>
.
.
.
</objects>
</spring>
What can be the problem?