Server Error in '/' Application.

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

Source Error:


Line 100:                    DataSourceID="SqlDataSource1" DataTextField="query" DataValueField="query">
Line 101:                </asp:DropDownList>
Line 102:                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
Line 103:                    ConnectionString="<%$ ConnectionStrings:PracticeConnectionString %>" 
Line 104:                    SelectCommand="SELECT [query] FROM [Contact]"></asp:SqlDataSource>

Source File: g:\pleskvhosts\sigmasl.com\httpdocs\ContactUs.aspx    Line: 102

Stack Trace:


[InvalidOperationException: The connection name 'PracticeConnectionString' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1561610
   ASP.contactus_aspx.__BuildControlSqlDataSource1() in g:\pleskvhosts\sigmasl.com\httpdocs\ContactUs.aspx:102
   ASP.contactus_aspx.__BuildControlContent4(Control __ctrl) in g:\pleskvhosts\sigmasl.com\httpdocs\ContactUs.aspx:84
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +15
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +90
   ASP.sigma_master.__BuildControlContentPlaceHolder1() in g:\pleskvhosts\sigmasl.com\httpdocs\Sigma.master:122
   ASP.sigma_master.__BuildControlform1() in g:\pleskvhosts\sigmasl.com\httpdocs\Sigma.master:39
   ASP.sigma_master.__BuildControlTree(sigma_master __ctrl) in g:\pleskvhosts\sigmasl.com\httpdocs\Sigma.master:1
   ASP.sigma_master.FrameworkInitialize() in g:\pleskvhosts\sigmasl.com\httpdocs\Sigma.master.cs: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