boriska
04-04-2007, 03:46 PM
I don’t understand what the issue is….
I only added new object and a new service object that references to it.
There are another objects and services and they worked, this new insert is analog...
The error says : TypeLoadException: Could not load type from string value ‘className,AssemblyName’
If I ‘m using the reflector, I can see that class is in the assembly
Here the call stack:
[TypeLoadException: Der Typ Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice in der Assembly DataAccessLayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null konnte nicht geladen werden.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
Spring.Util.TypeResolver.LoadTypeDirectlyFromAssem bly(TypeAssemblyInfo typeInfo) +133
Spring.Util.TypeResolver.ResolveType(String typeName) +179
[TypeLoadException: Could not load type from string value 'Serad.VBP2.DataAccessLayer.Spring.Services.Filter Sevice, DataAccessLayer'.]
Spring.Util.TypeResolver.ResolveType(String typeName) +214
Spring.Util.TypeResolver.Resolve(String typeName) +97
Spring.Util.CachedTypeResolver.Resolve(String typeName) +340
Spring.Objects.ObjectUtils.ResolveType(String typeName) +92
Spring.Objects.Factory.Support.DefaultObjectDefini tionFactory.CreateObjectDefinition(String typeName, String parent, ConstructorArgumentValues arguments, MutablePropertyValues properties, AppDomain domain) +106
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, String id, XmlResourceReader parser) +569
[ObjectDefinitionStoreException: Error registering object with name 'FilterService' defined in 'file [D:\Development\VBP_Online\VBP2\WebSites\Developmen tWebsite\Services.xml]' : Object class [Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice, DataAccessLayer] not found.
<object id="FilterService" type="Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice, DataAccessLayer" xmlns="http://www.springframework.net"><property name="FilterServiceGetter" ref="filterStoredProc" /></object>]
Spring.Objects.Factory.Xml.XmlResourceReader.Repor tException(XmlNode node, String name, String message, Exception cause) +414
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, String id, XmlResourceReader parser) +1778
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, XmlResourceReader parser) +284
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.RegisterObjectDefinition(XmlElement element, XmlResourceReader parser) +81
[ObjectDefinitionStoreException: Failed parsing object definition '<object id="FilterService" type="Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice, DataAccessLayer" xmlns="http://www.springframework.net"><property name="FilterServiceGetter" ref="filterStoredProc" /></object>']
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.RegisterObjectDefinition(XmlElement element, XmlResourceReader parser) +194
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseElement(XmlElement element, XmlResourceReader parser) +171
Spring.Objects.Factory.Xml.XmlResourceReader.Regis terObjectDefinitions(XmlElement root) +371
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.RegisterObjectDefinitions(XmlElement objectsElement, IResource resource) +74
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.LoadObjectDefinitions(IResource resource) +540
Spring.Context.Support.AbstractXmlApplicationConte xt.LoadObjectDefinitions(XmlObjectDefinitionReader objectDefinitionReader) +156
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() +128
Spring.Context.Support.AbstractApplicationContext. Refresh() +265
Spring.Context.Support.XmlApplicationContext..ctor (String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +73
Spring.Context.Support.XmlApplicationContext..ctor (String name, Boolean caseSensitive, String[] configurationLocations) +55
[TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht.]
System.RuntimeMethodHandle._InvokeConstructor(Obje ct[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(Objec t[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +13
System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +366
System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +14
Spring.Objects.ObjectUtils.InstantiateType(Constru ctorInfo constructor, Object[] arguments) +311
[FatalObjectException: Cannot instantiate Type [Spring.Context.Support.XmlApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : 'Ein Aufrufziel hat einen Ausnahmefehler verursacht.']
Spring.Objects.ObjectUtils.InstantiateType(Constru ctorInfo constructor, Object[] arguments) +499
Spring.Context.Support.RootContextInstantiator.Inv okeContextConstructor(ConstructorInfo ctor) +198
Spring.Context.Support.ContextInstantiator.Instant iateContext() +200
[ConfigurationErrorsException: Error instantiating context 'spring.root'.]
System.Configuration.BaseConfigurationRecord.Evalu ateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) +358
System.Configuration.BaseConfigurationRecord.Evalu ate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject) +988
System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) +1451
System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) +1451
System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey, Boolean getLkg, Boolean checkPermission) +67
System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey) +34
System.Web.HttpContext.GetSection(String sectionName) +62
System.Web.Configuration.HttpConfigurationSystem.G etSection(String sectionName) +46
System.Web.Configuration.HttpConfigurationSystem.S ystem.Configuration.Internal.IInternalConfigSystem .GetSection(String configKey) +29
System.Configuration.ConfigurationManager.GetSecti on(String sectionName) +59
Spring.Util.ConfigurationUtils.GetSection(String sectionName) +44
Spring.Context.Support.ContextRegistry.InitializeC ontextIfNeeded() +66
Spring.Context.Support.ContextRegistry.GetContext( ) +72
Spring.Data.NHibernate.Support.OpenSessionInViewMo dule.get_SessionFactory() +66
Spring.Data.NHibernate.Support.OpenSessionInViewMo dule.Open() +82
Spring.Data.NHibernate.Support.OpenSessionInViewMo dule.context_BeginRequest(Object sender, EventArgs e) +45
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute() +167
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +117
I only added new object and a new service object that references to it.
There are another objects and services and they worked, this new insert is analog...
The error says : TypeLoadException: Could not load type from string value ‘className,AssemblyName’
If I ‘m using the reflector, I can see that class is in the assembly
Here the call stack:
[TypeLoadException: Der Typ Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice in der Assembly DataAccessLayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null konnte nicht geladen werden.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
Spring.Util.TypeResolver.LoadTypeDirectlyFromAssem bly(TypeAssemblyInfo typeInfo) +133
Spring.Util.TypeResolver.ResolveType(String typeName) +179
[TypeLoadException: Could not load type from string value 'Serad.VBP2.DataAccessLayer.Spring.Services.Filter Sevice, DataAccessLayer'.]
Spring.Util.TypeResolver.ResolveType(String typeName) +214
Spring.Util.TypeResolver.Resolve(String typeName) +97
Spring.Util.CachedTypeResolver.Resolve(String typeName) +340
Spring.Objects.ObjectUtils.ResolveType(String typeName) +92
Spring.Objects.Factory.Support.DefaultObjectDefini tionFactory.CreateObjectDefinition(String typeName, String parent, ConstructorArgumentValues arguments, MutablePropertyValues properties, AppDomain domain) +106
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, String id, XmlResourceReader parser) +569
[ObjectDefinitionStoreException: Error registering object with name 'FilterService' defined in 'file [D:\Development\VBP_Online\VBP2\WebSites\Developmen tWebsite\Services.xml]' : Object class [Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice, DataAccessLayer] not found.
<object id="FilterService" type="Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice, DataAccessLayer" xmlns="http://www.springframework.net"><property name="FilterServiceGetter" ref="filterStoredProc" /></object>]
Spring.Objects.Factory.Xml.XmlResourceReader.Repor tException(XmlNode node, String name, String message, Exception cause) +414
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, String id, XmlResourceReader parser) +1778
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, XmlResourceReader parser) +284
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.RegisterObjectDefinition(XmlElement element, XmlResourceReader parser) +81
[ObjectDefinitionStoreException: Failed parsing object definition '<object id="FilterService" type="Serad.VBP2.DataAccessLayer.Spring.Services.FilterS evice, DataAccessLayer" xmlns="http://www.springframework.net"><property name="FilterServiceGetter" ref="filterStoredProc" /></object>']
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.RegisterObjectDefinition(XmlElement element, XmlResourceReader parser) +194
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseElement(XmlElement element, XmlResourceReader parser) +171
Spring.Objects.Factory.Xml.XmlResourceReader.Regis terObjectDefinitions(XmlElement root) +371
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.RegisterObjectDefinitions(XmlElement objectsElement, IResource resource) +74
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.LoadObjectDefinitions(IResource resource) +540
Spring.Context.Support.AbstractXmlApplicationConte xt.LoadObjectDefinitions(XmlObjectDefinitionReader objectDefinitionReader) +156
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() +128
Spring.Context.Support.AbstractApplicationContext. Refresh() +265
Spring.Context.Support.XmlApplicationContext..ctor (String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +73
Spring.Context.Support.XmlApplicationContext..ctor (String name, Boolean caseSensitive, String[] configurationLocations) +55
[TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht.]
System.RuntimeMethodHandle._InvokeConstructor(Obje ct[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(Objec t[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +13
System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +366
System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +14
Spring.Objects.ObjectUtils.InstantiateType(Constru ctorInfo constructor, Object[] arguments) +311
[FatalObjectException: Cannot instantiate Type [Spring.Context.Support.XmlApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : 'Ein Aufrufziel hat einen Ausnahmefehler verursacht.']
Spring.Objects.ObjectUtils.InstantiateType(Constru ctorInfo constructor, Object[] arguments) +499
Spring.Context.Support.RootContextInstantiator.Inv okeContextConstructor(ConstructorInfo ctor) +198
Spring.Context.Support.ContextInstantiator.Instant iateContext() +200
[ConfigurationErrorsException: Error instantiating context 'spring.root'.]
System.Configuration.BaseConfigurationRecord.Evalu ateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) +358
System.Configuration.BaseConfigurationRecord.Evalu ate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject) +988
System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) +1451
System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) +1451
System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey, Boolean getLkg, Boolean checkPermission) +67
System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey) +34
System.Web.HttpContext.GetSection(String sectionName) +62
System.Web.Configuration.HttpConfigurationSystem.G etSection(String sectionName) +46
System.Web.Configuration.HttpConfigurationSystem.S ystem.Configuration.Internal.IInternalConfigSystem .GetSection(String configKey) +29
System.Configuration.ConfigurationManager.GetSecti on(String sectionName) +59
Spring.Util.ConfigurationUtils.GetSection(String sectionName) +44
Spring.Context.Support.ContextRegistry.InitializeC ontextIfNeeded() +66
Spring.Context.Support.ContextRegistry.GetContext( ) +72
Spring.Data.NHibernate.Support.OpenSessionInViewMo dule.get_SessionFactory() +66
Spring.Data.NHibernate.Support.OpenSessionInViewMo dule.Open() +82
Spring.Data.NHibernate.Support.OpenSessionInViewMo dule.context_BeginRequest(Object sender, EventArgs e) +45
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute() +167
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +117