Server Error in '/Apply' Application.

There is no row at position 0.

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: There is no row at position 0.

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: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2140712
   select.dataaccesslayer.AdminConfigDAL.GetCustomerSessionInfo_DR(String sClientURL, Int32 iClientID, Int32 iSiteID, String sLanguage) in C:\a\1\s\Select.SelectrakNet\src\ips\Select.DAL\AdminConfigDAL.cs:1313
   select.core.admin.SetupMethods.GetSessionVars(String strApplicationSite) in C:\a\1\s\Select.SelectrakNet\src\ips\IPS.Core\admin\SetupMethods.cs:186
   select.core.admin.SetupMethods.Setup(String strApplicationSite) in C:\a\1\s\Select.SelectrakNet\src\ips\IPS.Core\admin\SetupMethods.cs:57
   Select.Selectrak.Controllers.PortalController..ctor(ICommonUow commonUow) in C:\a\1\s\Select.SelectrakNet\Select.Selectrak\Controllers\PortalController.cs:64
   lambda_method(Closure , IBuilderContext ) +198
   Microsoft.Practices.ObjectBuilder2.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context) +35
   Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +10
   Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +196
   Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +209
   Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +165

[ResolutionFailedException: Resolution of the dependency failed, type = "Select.Selectrak.Controllers.PortalController", name = "(none)".
Exception occurred while: Calling constructor Select.Selectrak.Controllers.PortalController(Select.Data.Contracts.ICommonUow commonUow).
Exception is: IndexOutOfRangeException - There is no row at position 0.
-----------------------------------------------
At the time of the exception, the container was:

  Resolving Select.Selectrak.Controllers.PortalController,(none)
  Calling constructor Select.Selectrak.Controllers.PortalController(Select.Data.Contracts.ICommonUow commonUow)
]
   Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +329
   Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides) +15
   Microsoft.Practices.Unity.UnityContainerExtensions.Resolve(IUnityContainer container, Type t, ResolverOverride[] overrides) +18
   Unity.Mvc4.UnityDependencyResolver.GetService(Type serviceType) +91
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +41

[InvalidOperationException: An error occurred when trying to create a controller of type 'Select.Selectrak.Controllers.PortalController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +178
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +80
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +102
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +188
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +50
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +105
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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