首页 新闻 会员 周边 捐助

已添加项。字典中的关键字:“office”所添加的关键字:“office”

0
[已关闭问题] 关闭于 2013-03-12 10:55

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 已添加项。字典中的关键字:“office”所添加的关键字:“office”

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。


堆栈跟踪:

[ArgumentException: 已添加项。字典中的关键字:“office”所添加的关键字:“office”]
   System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +7485960
   System.Collections.Hashtable.Add(Object key, Object value) +11
   PuyoFramework.SpringHelper.AssemblyTools.Init() +292
   PuyoFramework.SpringHelper.AssemblyTools.CreateAssemblyTools() +67

[ObjectDefinitionStoreException: Factory method 'PuyoFramework.SpringHelper.AssemblyTools CreateAssemblyTools()' threw an Exception.]
   Spring.Objects.Factory.Support.SimpleInstantiationStrategy.Instantiate(RootObjectDefinition definition, String name, IObjectFactory factory, MethodInfo factoryMethod, Object[] arguments) +536
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateUsingFactoryMethod(String name, RootObjectDefinition definition, Object[] arguments) +1240
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.CreateObjectInstance(String name, RootObjectDefinition definition, Object[] arguments) +131
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.CreateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching) +821

[ObjectCreationException: Error creating object with name 'AssemblyTools' defined in 'assembly [PuyoFramework.Net.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31070e8ff7427e46], resource [PuyoFramework.Core.puyo.net_bean_nhibernate.xml]' : Initialization of object failed : Factory method 'PuyoFramework.SpringHelper.AssemblyTools CreateAssemblyTools()' threw an Exception.]
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.CreateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching) +1320
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.CreateObject(String name, RootObjectDefinition definition, Object[] arguments) +77
   Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) +250
   Spring.Objects.Factory.Support.WebObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) +187
   Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name, Type requiredType, Object[] arguments) +832
   Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name) +100
   Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() +866
   Spring.Context.Support.AbstractApplicationContext.Refresh() +1052
   Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +114
   Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, String[] configurationLocations) +59

[TargetInvocationException: 调用的目标发生了异常。]
   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
   System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +17
   Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +812

[FatalReflectionException: Cannot instantiate Type [Spring.Context.Support.WebApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : '调用的目标发生了异常。']
   Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +1103
   Spring.Context.Support.RootContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) +254
   Spring.Context.Support.ContextInstantiator.InstantiateContext() +217
   Spring.Context.Support.ContextHandler.InstantiateContext(IApplicationContext parentContext, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +225
   Spring.Context.Support.WebContextHandler.InstantiateContext(IApplicationContext parent, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +395
   Spring.Context.Support.ContextHandler.Create(Object parent, Object configContext, XmlNode section) +616

[ConfigurationErrorsException: Error creating context '/yqweb': 已添加项。字典中的关键字:“office”所添加的关键字:“office”]
   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) +60
   Spring.Context.Support.WebApplicationContext.GetContextInternal(String virtualPath) +1396
   Spring.Context.Support.WebApplicationContext.GetRootContext() +166
   Spring.Context.Support.WebSupportModule.Init(HttpApplication app) +493
   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.4984; ASP.NET 版本:2.0.50727.4971

Ole_Yao的主页 Ole_Yao | 菜鸟二级 | 园豆:236
提问于:2013-03-12 10:45
< >
分享
所有回答(1)
0

删除office.dll文件后解决

Ole_Yao | 园豆:236 (菜鸟二级) | 2013-03-12 10:55
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册