Server Error in '/Store' Application.

Stored procedure to find portalId by Alias is missing.  Please add I_GetPortalByAlias store procedure to DNN database.  Specified cast is not valid.

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.Exception: Stored procedure to find portalId by Alias is missing.  Please add I_GetPortalByAlias store procedure to DNN database.  Specified cast is not valid.

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:


[Exception: Stored procedure to find portalId by Alias is missing.  Please add I_GetPortalByAlias store procedure to DNN database.  Specified cast is not valid.]
   SPLight.DNN.ConfigService.GetDNNPortalIdByAlias(String portalAlias) +380
   SPLight.DNN.ConfigService.GetStoreActiveServiceByHostUrl(String hostUrlAlias) +32
   SPLight.DNN.SPConnectionStrings.GetEStoreConnectionString(String hostUrl) +156
   SPLight.Store.eService..ctor(String hostUrl) +44
   STS.StoreService.Start(String hostUrl) +121
   SPLight.Store.BusinessLogic.Profile.MembershipHttpModule.Application_BeginRequest(Object sender, EventArgs e) +106
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


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