“/”應(yīng)用程序中的服務(wù)器錯(cuò)誤。
?
Could not load type from string value 'DirectCenter.DAL.UserDao, DirectCenter.DAL'.
說明:?執(zhí)行當(dāng)前 Web 請(qǐng)求期間,出現(xiàn)未處理的異常。請(qǐng)檢查堆棧跟蹤信息,以了解有關(guān)該錯(cuò)誤以及代碼中導(dǎo)致錯(cuò)誤的出處的詳細(xì)信息。?異常詳細(xì)信息:?System.TypeLoadException: Could not load type from string value 'DirectCenter.DAL.UserDao, DirectCenter.DAL'.源錯(cuò)誤:?
執(zhí)行當(dāng)前 Web 請(qǐng)求期間生成了未處理的異常??梢允褂孟旅娴漠惓6褩8櫺畔⒋_定有關(guān)異常原因和發(fā)生位置的信息。
堆棧跟蹤:?
[TypeLoadException: Could not load type from string value 'DirectCenter.DAL.UserDao, DirectCenter.DAL'.]
Spring.Core.TypeResolution.TypeResolver.Resolve(String typeName) +224
Spring.Core.TypeResolution.GenericTypeResolver.Resolve(String typeName) +309
Spring.Core.TypeResolution.CachedTypeResolver.Resolve(String typeName) +229
Spring.Core.TypeResolution.TypeResolutionUtils.ResolveType(String typeName) +41
Spring.Objects.Factory.Support.AbstractObjectDefinition.ResolveObjectType() +35
Spring.Objects.Factory.Support.AbstractObjectFactory.ResolveObjectType(RootObjectDefinition rod, String objectName) +71
[CannotLoadObjectTypeException: Cannot resolve type [DirectCenter.DAL.UserDao, DirectCenter.DAL] for object with name 'UserDao' defined in assembly [DirectCenter.App, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [DirectCenter.App.Dao.xml]]
Spring.Objects.Factory.Support.AbstractObjectFactory.ResolveObjectType(RootObjectDefinition rod, String objectName) +137
Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() +267
Spring.Context.Support.AbstractApplicationContext.Refresh() +512
Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +66
Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, String[] configurationLocations) +17
[TargetInvocationException: 調(diào)用的目標(biāo)發(fā)生了異常。]
System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +15
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +249
Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +229
[FatalReflectionException: Cannot instantiate Type [Spring.Context.Support.WebApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : '調(diào)用的目標(biāo)發(fā)生了異常。']
Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +378
Spring.Context.Support.RootContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) +108
Spring.Context.Support.ContextInstantiator.InstantiateContext() +34
Spring.Context.Support.ContextHandler.InstantiateContext(IApplicationContext parentContext, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +106
Spring.Context.Support.WebContextHandler.InstantiateContext(IApplicationContext parent, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +268
Spring.Context.Support.ContextHandler.Create(Object parent, Object configContext, XmlNode section) +265
[ConfigurationErrorsException: Error creating context 'spring.root': Could not load type from string value 'DirectCenter.DAL.UserDao, DirectCenter.DAL'.]
System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) +202
System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject) +1061
System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) +1431
System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) +56
System.Configuration.BaseConfigurationRecord.GetSection(String configKey) +8
System.Web.HttpContext.GetSection(String sectionName) +47
System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName) +39
System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey) +6
System.Configuration.ConfigurationManager.GetSection(String sectionName) +78
Spring.Util.ConfigurationUtils.GetSection(String sectionName) +50
Spring.Context.Support.WebApplicationContext.GetContextInternal(String virtualPath) +829
Spring.Context.Support.WebApplicationContext.GetRootContext() +84
Spring.Context.Support.WebSupportModule.Init(HttpApplication app) +372
System.Web.HttpApplication.InitModulesCommon() +65
System.Web.HttpApplication.InitModules() +43
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +729
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +298
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +289
版本信息:?Microsoft .NET Framework 版本:2.0.50727.4971; ASP.NET 版本:2.0.50727.4971
因?yàn)檫@個(gè)剛接觸,具體不知道該怎么說。這個(gè)問題是我在用HibernateTemplate注入到數(shù)據(jù)訪問類中的時(shí)候出錯(cuò)
- 2 回答
- 0 關(guān)注
- 636 瀏覽
添加回答
舉報(bào)
0/150
提交
取消