2

很随机,我们收到一条错误消息,提示项目已添加。当我们查询 LinqToSql 数据上下文时键入字典,停止它的唯一方法是重新启动 IIS。

错误信息:

错误消息:项目已添加。字典中的键:'Int32 Single1[System.Int32]">Int32' 添加的键:'Int32 Single[Int32](System.Collections.Generic.IEnumerable1[System.Int32])'

堆栈跟踪:

堆栈跟踪:在 System.Reflection.CerHashtable 2.Insert(K[] keys, V[] values, Int32& count, K key, V value) at System.Reflection.CerHashtable2.Preallocate(Int32 count) 在 System.RuntimeType.RuntimeTypeCache.GetGenericMethodInfo(RuntimeMethodHandleInternal genericMethod) 在 System.RuntimeType.GetMethodBase(RuntimeType reflectType, RuntimeMethodHandleInternal methodHandle) 在 System.Reflection.RuntimeMethodInfo.MakeGenericMethod(在 System.Linq.Queryable.Count[TSource](IQueryable 中键入 [] methodInstantiation)1 source) at Triton.CRM.OrganisationType.LoadOrganisationTypeInformation() in c:\Users\timg\Documents\Visual Studio 2012\Projects\Triton V2\TritonDataSets\Organisation\OrganisationType.cs:line 82 at Triton.CRM.OrganisationType.get_OrganisationTypeName() in c:\Users\timg\Documents\Visual Studio 2012\Projects\Triton V2\TritonDataSets\Organisation\OrganisationType.cs:line 31 at Triton.CRM.OrganisationType.GetAllData(Int32 PageSize, Int32 Currentpage, String sortField, String sortOrder, String query, Int32 personId, Int64 organisationId, String groupIdListCtv, String select, String searchValue, Boolean useFullTextSearch, List1 groupIdList) 在 c:\Users\timg\Documents\Visual Studio 2012\Projects\Triton V2\TritonDataSets\Organisation\OrganisationType.cs: 255 行 CustomPages_GetFranchiseeSummary.Page_Load(Object sender, EventArgs e) at System.Web.Util。 CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

我发现很多帖子都提到它与一个错误有关,System.Reflection.RuntimeMethodInfo.MakeGenericMethod但没有解决方案。

我也在 Microsoft Connect 上找到了这个,但他们说它已在 .net 4 中修复并且我正在运行 .net 4.5

https://connect.microsoft.com/VisualStudio/feedback/details/738253

4

0 回答 0