Server Error in '/' Application.

An item with the same key has already been added.

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: An item with the same key has already been added.

Source Error:


Line 129:            _Tincomp.Ma_language = Language;
Line 130:            _Tincomp.Sortnxb = true;
Line 131:            _Tintuc = _Tincomp.SelectById(idtin);
Line 132:
Line 133:            if (_Tintuc != null)

Source File: C:\webspace\nguoivietdulichviet.vn\httpdocs\Modules\Sinnova\Content\Trangcon\khamphachitiet.ascx.cs    Line: 131

Stack Trace:


[ArgumentException: An item with the same key has already been added.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +13215534
   System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +15
   Chili.Opf3.Mapping.RelationInfoCollection.Add(Type genericType, RelationAttribute attribute, RelationInfo info) +207
   Chili.Opf3.Mapping.Providers.MappingBuilder.CreateRelationMappings(Type type, RelationInfoCollection list) +844
   Chili.Opf3.Mapping.Providers.MappingBuilder.CreateRelationMappings(Type type, RelationInfoCollection list) +909
   Chili.Opf3.Mapping.TypeMapping.get_Relations() +117
   Chili.Opf3.Relations.RelationsManager.ConnectRelated(Object obj) +170
   Chili.Opf3.Storages.StorageObjectReader`1.PopulateObject(Type type) +933
   Chili.Opf3.Storages.StorageObjectReader`1.InternalRead(Int32 step) +937
   Chili.Opf3.ObjectReader`1.Read(Int32 step) +169
   Chili.Opf3.ObjectReader`1.Read() +48
   Chili.Opf3.ObjectContext.GetObject(IQuery query) +149
   Chili.Opf3.Relations.ObjectHolder`1.InnerLoad(ObjectContext context) +705
   Chili.Opf3.Relations.ObjectHolder`1.get_InnerObject() +199
   SINNOVA.Business.Entities.T_TINTUC1.get_Tin_chuyenmuc() +19
   SINNOVA.Business.Components.T_TINTUCComponents.SetLanguageUserInterface(T_TINTUC1 _Obj) +322
   SINNOVA.Business.Components.T_TINTUCComponents.SelectById(Int32 Tintuc_id) +173
   SINNOVA.ASPNet.Modules_Sinnova_Content_Trangcon_khamphachitiet.Page_Load(Object sender, EventArgs e) in C:\webspace\nguoivietdulichviet.vn\httpdocs\Modules\Sinnova\Content\Trangcon\khamphachitiet.ascx.cs:131
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0