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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   mojoPortal.Data.SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, String typeName, Int32 size, Byte precision, ParameterDirection dir, Object value, Boolean sizeProvided, Boolean precisionProvided) in E:\2019\DHSP_THAINGUYEN\01.SourceCode\Deverloping\mojoPortal.Data.MSSQL\SQLParameterHelper.cs:135
   mojoPortal.Data.SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, Int32 size, ParameterDirection dir, Object value) in E:\2019\DHSP_THAINGUYEN\01.SourceCode\Deverloping\mojoPortal.Data.MSSQL\SQLParameterHelper.cs:97
   mojoPortal.Data.DBmd_Admission.GetCount(String type, String phoneNumber, String lastName, Nullable`1 gender, Nullable`1 birthday, String numberCard, String email, Nullable`1 priorityArea, Nullable`1 priorityObject, Nullable`1 graduated, Nullable`1 contestIndustry) in E:\2019\DHSP_THAINGUYEN\01.SourceCode\Deverloping\mojoPortal.Features.Data.MSSQL\Admissions\DBmd_Admission.cs:394
   mojoPortal.Data.DBmd_Admission.GetPage(String type, String phoneNumber, String lastName, Nullable`1 gender, Nullable`1 birthday, String numberCard, String email, Nullable`1 priorityArea, Nullable`1 priorityObject, Nullable`1 graduated, Nullable`1 contestIndustry, Int32 pageNumber, Int32 pageSize, Int32& totalPages) in E:\2019\DHSP_THAINGUYEN\01.SourceCode\Deverloping\mojoPortal.Features.Data.MSSQL\Admissions\DBmd_Admission.cs:441
   mojoPortal.Business.md_Admission.GetPage(String type, String phoneNumber, String lastName, Nullable`1 gender, Nullable`1 birthday, String numberCard, String email, Nullable`1 priorityArea, Nullable`1 priorityObject, Nullable`1 graduated, Nullable`1 contestIndustry, Int32 pageNumber, Int32 pageSize, Int32& totalPages) in E:\2019\DHSP_THAINGUYEN\01.SourceCode\Deverloping\mojoPortal.Features.Business\Admissions\Admission.cs:796
   AdmissionFeature.UI.RecentListControl.BinAdmission() +373
   AdmissionFeature.UI.RecentListControl.PopulateControls() +40
   AdmissionFeature.UI.RecentListControl.Page_Load(Object sender, EventArgs e) +109
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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