本文介绍了项目已添加.字典中的键:'Int32 Count [Object](System.Collections.Generic.IEnumerable`1 [System.Object])'被添加的键:'Int32 ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Server Error in '/Admin' Application.

Item has already been added. Key in dictionary: 'Int32 Count[Object](System.Collections.Generic.IEnumerable`1[System.Object])'  Key being added: 'Int32 Count[Object](System.Collections.Generic.IEnumerable`1[System.Object])'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Item has already been added. Key in dictionary: 'Int32 Count[Object](System.Collections.Generic.IEnumerable`1[System.Object])'  Key being added: 'Int32 Count[Object](System.Collections.Generic.IEnumerable`1[System.Object])'

Source Error: 


Line 856:        IDCCircleDataContext idc = new IDCCircleDataContext();
Line 857:
Line 858:        var qCampaignFilters = idc.Filters.OrderBy(c => c.FilterName);
Line 859:
Line 860:        ddlLoadFilter.Items.Clear();

Source File: d:\IDCC\Website\IDCCircle\Admin\Campaigns\Event\NewSendMailToUsers.aspx.cs    Line: 858 

Stack Trace: 


[ArgumentException: Item has already been added. Key in dictionary: 'Int32 Count[Object](System.Collections.Generic.IEnumerable`1[System.Object])'  Key being added: 'Int32 Count[Object](System.Collections.Generic.IEnumerable`1[System.Object])']
   System.Reflection.CerHashtable`2.Insert(K[] keys, V[] values, Int32& count, K key, V value) +7473762
   System.Reflection.CerHashtable`2.Preallocate(Int32 count) +301
   System.RuntimeTypeCache.GetGenericMethodInfo(RuntimeMethodHandle genericMethod) +240
   System.RuntimeType.GetMethodBase(RuntimeTypeHandle reflectedTypeHandle, RuntimeMethodHandle methodHandle) +438
   System.Reflection.RuntimeMethodInfo.MakeGenericMethod(Type[] methodInstantiation) +320
   System.Linq.Queryable.OrderBy(IQueryable`1 source, Expression`1 keySelector) +213
   Campaigns_Generic_NewSendMailToUsers.BindDDL() in d:\IDCC\Website\IDCCircle\Admin\Campaigns\Event\NewSendMailToUsers.aspx.cs:858
   Campaigns_Generic_NewSendMailToUsers.Page_Load(Object sender, EventArgs e) in d:\IDCC\Website\IDCCircle\Admin\Campaigns\Event\NewSendMailToUsers.aspx.cs:49
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456

推荐答案


这篇关于项目已添加.字典中的键:'Int32 Count [Object](System.Collections.Generic.IEnumerable`1 [System.Object])'被添加的键:'Int32 ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 23:15