Http status: 500 Internal Server Error
ajaxOptions: error
thrownError: Internal Server Error
“/”应用程序中的服务器错误。 --------------------------------------------------------------------------------
EntityCollection 已初始化。在反序列化对象图期间仅应调用 InitializeRelatedCollection 方法以初始化新 EntityCollection。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.InvalidOperationException: EntityCollection 已初始化。在反序列化对象图期间仅应调用 InitializeRelatedCollection 方法以初始化新 EntityCollection。
源错误:
行 232: if ((value != null)) 行 233: { 行 234: ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<T_video>("DB_videoModel.FK_T_video_T_class", "T_video", value); 行 235: } 行 236: }
源文件: E:\Projects\WEBVideo\Modal\video.Designer.cs 行: 234
堆栈跟踪:
[InvalidOperationException: EntityCollection 已初始化。在反序列化对象图期间仅应调用 InitializeRelatedCollection 方法以初始化新 EntityCollection。] System.Data.Objects.DataClasses.RelationshipManager.InitializeRelatedCollection(String relationshipName, String targetRoleName, EntityCollection`1 entityCollection) +2494747 Modal.T_class.set_T_video(EntityCollection`1 value) in E:\Projects\WEBVideo\Modal\video.Designer.cs:234 WebRoleAdmin.videoclass.<BindData>b__3(T_class s) in E:\Projects\WEBVideo\WEBVideo\Admin\videoclass.aspx.cs:50 System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +145 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +381 System.Linq.Enumerable.ToList(IEnumerable`1 source) +58 DAL.SQLServerDAL`1.GetListByPage(Int32 pageIndex, Int32 pageSize, Func`2 where, Func`2 orderBy, Func`2 selector, Int32& totalCount, Boolean isAesc) in E:\Projects\WEBVideo\DAL\SQLServerDAL.cs:164 BLL.T_classBLL.GetListByPage(Int32 pageIndex, Int32 pageSize, Func`2 where, Func`2 orderBy, Func`2 selector, Int32& totalCount, Boolean isAsc) in E:\Projects\WEBVideo\BLL\T_classBLL.cs:43 WebRoleAdmin.videoclass.BindData() in E:\Projects\WEBVideo\WEBVideo\Admin\videoclass.aspx.cs:50 WebRoleAdmin.videoclass.Page_Load(Object sender, EventArgs e) in E:\Projects\WEBVideo\WEBVideo\Admin\videoclass.aspx.cs:22 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
-------------------------------------------------------------------------------- 版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.17929