Server Error in '/' Application.

The connection name 'SiteConnectionString' was not found in the applications configuration or the connection string is empty.

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.InvalidOperationException: The connection name 'SiteConnectionString' was not found in the applications configuration or the connection string is empty.

Source Error:


Line 299:                        </td>
Line 300:                        <td>
Line 301:                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
Line 302:                    ConnectionString="<%$ ConnectionStrings:SiteConnectionString %>" 
Line 303:                    SelectCommand="SELECT Books.BookId, BooKperiod.PeriodName, Books.BookName, Books.PricesJA, Books.PricesCD,Books.Pricesannual FROM Books INNER JOIN BooKperiod ON Books.BookPeriodId = BooKperiod.BookPeriodId">

Source File: D:\InetPub\vhosts\statinja.gov.jm\development.statinja.gov.jm\subcriptions.aspx    Line: 301

Stack Trace:


[InvalidOperationException: The connection name 'SiteConnectionString' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1561610
   ASP.subcriptions_aspx.__BuildControlSqlDataSource1() in D:\InetPub\vhosts\statinja.gov.jm\development.statinja.gov.jm\subcriptions.aspx:301
   ASP.subcriptions_aspx.__BuildControlContent2(Control __ctrl) in D:\InetPub\vhosts\statinja.gov.jm\development.statinja.gov.jm\subcriptions.aspx:72
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +15
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +90
   ASP.masterpage_master.__BuildControlContentPlaceHolder1() in D:\InetPub\vhosts\statinja.gov.jm\development.statinja.gov.jm\MasterPage.master:110
   ASP.masterpage_master.__BuildControlform1() in D:\InetPub\vhosts\statinja.gov.jm\development.statinja.gov.jm\MasterPage.master:32
   ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in D:\InetPub\vhosts\statinja.gov.jm\development.statinja.gov.jm\MasterPage.master:1
   ASP.masterpage_master.FrameworkInitialize() in D:\InetPub\vhosts\statinja.gov.jm\development.statinja.gov.jm\MasterPage.master.vb:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +37
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +697
   System.Web.UI.Page.get_Master() +56
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +302


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