pcorp
12-29-2004, 06:38 PM
I have a very simple app context file as follows:
<?xml version="1.0" encoding="utf-8" ?>
<objects>
<object id="userData" type="CDICommon.Model.Security.UserData, CDICommon"/>
</objects>
When I try to load as follows:
IApplicationContext appCtx = new FileSystemXmlApplicationContext(@"C:\CogentWorkspace\CDIClient\bin\Debug\projectPlug in.xml");
I get the following stack trace:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ApplicationException: Object definition does not carry a resolved object class
at Spring.Objects.Factory.Support.AbstractObjectDefin ition.get_ObjectClass()
at Spring.Objects.Factory.Support.DefaultListableObje ctFactory.GetObjectDefinitionNames(Type type)
at Spring.Context.Support.AbstractApplicationContext. GetObjectDefinitionNames(Type type)
at Spring.Context.Support.AbstractApplicationContext. invokeObjectFactoryPostProcessors()
at Spring.Context.Support.AbstractApplicationContext. Refresh()
at Spring.Context.Support.FileSystemXmlApplicationCon text..ctor(String[] configurationLocations)
at Spring.Context.Support.FileSystemXmlApplicationCon text..ctor(String configurationLocation)
at CDIClient.Plugins.Project.ProjectPluginWrapper.Ini t() in c:\cogentworkspace\cdiclient\plugins\project\proje ctpluginwrapper.cs:line 32
I have verified that the UserData class is in the CDICommon assembly and all the paths are correct. Any idea what is causing this? Any help would be most appreciated. Thanks.
--pcorp
<?xml version="1.0" encoding="utf-8" ?>
<objects>
<object id="userData" type="CDICommon.Model.Security.UserData, CDICommon"/>
</objects>
When I try to load as follows:
IApplicationContext appCtx = new FileSystemXmlApplicationContext(@"C:\CogentWorkspace\CDIClient\bin\Debug\projectPlug in.xml");
I get the following stack trace:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ApplicationException: Object definition does not carry a resolved object class
at Spring.Objects.Factory.Support.AbstractObjectDefin ition.get_ObjectClass()
at Spring.Objects.Factory.Support.DefaultListableObje ctFactory.GetObjectDefinitionNames(Type type)
at Spring.Context.Support.AbstractApplicationContext. GetObjectDefinitionNames(Type type)
at Spring.Context.Support.AbstractApplicationContext. invokeObjectFactoryPostProcessors()
at Spring.Context.Support.AbstractApplicationContext. Refresh()
at Spring.Context.Support.FileSystemXmlApplicationCon text..ctor(String[] configurationLocations)
at Spring.Context.Support.FileSystemXmlApplicationCon text..ctor(String configurationLocation)
at CDIClient.Plugins.Project.ProjectPluginWrapper.Ini t() in c:\cogentworkspace\cdiclient\plugins\project\proje ctpluginwrapper.cs:line 32
I have verified that the UserData class is in the CDICommon assembly and all the paths are correct. Any idea what is causing this? Any help would be most appreciated. Thanks.
--pcorp