Anonymous
10-26-2004, 02:06 PM
Hi,
I'm trying out the Spring Framework and having some problems getting an object. Below is the code snippet I'm trying to execute and the configuration in my app.config. The error I'm getting is:
{"Error registering object with name 'ArtefactModule' defined in '[Configuration File Section] : objects' : Object class [zetcom.MuseumPlus.UIComponents.ArtefactModule, zetcom.MuseumPlus.UIComponents] not found." }
The assembly UIComponents is in the same directory as all other dll's (including spring's).
IApplicationContext appCtx = ConfigurationSettings.GetConfig("objects") as IApplicationContext;
m_module = (IMPModule)appCtx.GetObject(m_viewName + "Module");
m_layoutManager.LayoutModule(m_module);
<configSections>
<section name="objects" type="Spring.Context.Support.ApplicationContextHandler,S pring.Context"/>
</configSections>
<objects>
<object id="ArtefactModule" class="zetcom.MuseumPlus.UIComponents.ArtefactModule, zetcom.MuseumPlus.UIComponents"/>
</objects>
Thanks for any help
Michel
I'm trying out the Spring Framework and having some problems getting an object. Below is the code snippet I'm trying to execute and the configuration in my app.config. The error I'm getting is:
{"Error registering object with name 'ArtefactModule' defined in '[Configuration File Section] : objects' : Object class [zetcom.MuseumPlus.UIComponents.ArtefactModule, zetcom.MuseumPlus.UIComponents] not found." }
The assembly UIComponents is in the same directory as all other dll's (including spring's).
IApplicationContext appCtx = ConfigurationSettings.GetConfig("objects") as IApplicationContext;
m_module = (IMPModule)appCtx.GetObject(m_viewName + "Module");
m_layoutManager.LayoutModule(m_module);
<configSections>
<section name="objects" type="Spring.Context.Support.ApplicationContextHandler,S pring.Context"/>
</configSections>
<objects>
<object id="ArtefactModule" class="zetcom.MuseumPlus.UIComponents.ArtefactModule, zetcom.MuseumPlus.UIComponents"/>
</objects>
Thanks for any help
Michel