Server Error in '/' Application.

Value cannot be null or an empty string.
Parameter name: commandText

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.ArgumentException: Value cannot be null or an empty string.
Parameter name: commandText

Source Error:


Line 2:     Layout = Page.Layout; 
Line 3:     var product = Product.GetSummary(Page.ProductId);
Line 4:     var dcse = iStar.GetDCSExtended(Page.DeptCode, Page.ClassCode, Page.Subclass);
Line 5:  
Line 6:  }

Source File: c:\inetpub\wwwroot\Shared\Custom\ProductDetail.cshtml    Line: 4

Stack Trace:


[ArgumentException: Value cannot be null or an empty string.
Parameter name: commandText]
   WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args) +157
   System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +4380016
   CallSite.Target(Closure , CallSite , Object , String ) +194
   ASP.iStar.Single(String SQLSelect, String Token) +634
   ASP.iStar.GetDCSExtended(String deptCode, String classCode, String subclassCode) +3071
   ASP._Page_Shared_Custom_ProductDetail_cshtml.Execute() in c:\inetpub\wwwroot\Shared\Custom\ProductDetail.cshtml:4
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +131
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +231
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +80
   CallSite.Target(Closure , CallSite , _Page_ProductDetail_cshtml , Object ) +100
   ASP._Page_ProductDetail_cshtml.Execute() in c:\inetpub\wwwroot\ProductDetail.cshtml:6
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +131
   System.Web.WebPages.StartPage.RunPage() +17
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +64
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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