首页 新闻 会员 周边

spring.net 索引超出了数组界限。

0
悬赏园豆:10 [待解决问题]

// Spring.Objects.Factory.Support.AbstractObjectFactory
public virtual string[] GetSingletonNames()
{
    string[] result;
    lock (this.singletonCache)
    {
        ICollection keys = this.singletonCache.Keys;
        result = (string[])new ArrayList(keys).ToArray(typeof(string));
    }
    return result;
}

IndexOutOfRangeException
   索引超出了数组界限。 在 System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
在 System.Collections.Specialized.OrderedDictionary.OrderedDictionaryKeyValueCollection.System.Collections.ICollection.CopyTo(Array array, Int32 index)
 在 System.Collections.ArrayList.InsertRange(Int32 index, ICollection c)
在 Spring.Objects.Factory.Support.AbstractObjectFactory.GetSingletonNames() 在

Spring.Objects.Factory.Support.DefaultListableObjectFactory.DoGetObjectNamesForType(Type type, Boolean includeNonSingletons, Boolean allowEagerInit) 在

Spring.Objects.Factory.Support.DefaultListableObjectFactory.GetObjectsOfType(Type type, Boolean includePrototypes, Boolean includeFactoryObjects) 在 Spring.Context.Support.AbstractApplicationContext.GetObjectsOfType(Type type, Boolean includePrototypes, Boolean includeFactoryObjects) 在 Spring.Context.Support.AbstractApplicationContext.GetObjectsOfType(Type type) 在 Spring.Web.Mvc.SpringControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) 在 System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) 在 Spring.Web.Mvc.SpringControllerFactory.CreateController(RequestContext requestContext, String controllerName) 在 System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) 在 System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2() 在 System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a() 在 System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func) 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

浪林小哥的主页 浪林小哥 | 初学一级 | 园豆:140
提问于:2016-09-14 15:01
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册