Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 58: 
Line 59: 
Line 60:         string url_us = danhmucConfig.GetDanhmuc(int.Parse(viewIs)).linkUserContro.Split(';')[1];
Line 61:         Control uc = (Control)tranght.LoadControl(url_us);//Control uc = (Control)Page.LoadControl("~/public/controller/cap_1/example.ascx");
Line 62:         danhmuc_cap_2 setProperty = ((danhmuc_cap_2)uc);

Source File: c:\inetpub\vhosts\plcls.com.vn\httpdocs\App_Code\danhmuc\danhmuc_CheckAndShow.cs    Line: 60

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   danhmuc_CheckAndShow.danhmuc_CheckAndShow_cap_2(DataRow rowCheck, PlaceHolder ContaiWeb, Page tranght) in c:\inetpub\vhosts\plcls.com.vn\httpdocs\App_Code\danhmuc\danhmuc_CheckAndShow.cs:60
   public_xuly_cap_2.controller() in c:\inetpub\vhosts\plcls.com.vn\httpdocs\public\xuly_cap_2.aspx.cs:27
   public_xuly_cap_2.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\plcls.com.vn\httpdocs\public\xuly_cap_2.aspx.cs:13
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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