Spring.Net으로 응용 프로그램을 작성했습니다. 언제는 Spring.Net의 나는 예외를 가지고있다 ("...") GetObject를에 전화를 시도 :spring throwing error 객체의 정의를 찾을 수 없습니다.
에 대한 정의를 찾을 수 없습니다'SystemConfiguration_Workspace_NewWorkspaceAction'라는 이름의 개체가 정의되어 있지 : 객체 [SystemConfiguration_Workspace_NewWorkspaceAction]
하지만 XML에 'SystemConfiguration_Workspace_NewWorkspaceAction'이라는 개체가 있습니다.
<?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>
무엇이 문제 일 수 있습니까?
'SystemConfiguration_Workspace'와'SystemConfiguration_Workspace_NewWorkspaceAction' 객체 정의 만 볼 수 있습니다. – Marijn
죄송합니다! GetObject ("WorkspaceTreeModel") 을 사용하여 시도한 결과 "WorkspaceTreeModel"과 함께 동일한 오류가 발생했습니다. –
'SystemConfiguration_Workspace'가 'SystemConfiguration_Workspace_NewWorkspaceAction'으로 설정된 프로퍼티 또는 생성자를 가지고있을 수 있습니까? – Marijn