Server Error in '/' Application.

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

Source Error:


Line 22:             </Columns>
Line 23:         </asp:GridView>
Line 24:         <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:films %>"
Line 25:             SelectCommand="SELECT  [id],[rank],[name],[height_meters], [stories] FROM [building_location]">
Line 26:              

Source File: C:\home\site\wwwroot\datablock\buildings.ascx    Line: 24

Stack Trace:


[InvalidOperationException: The connection name 'films' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1561578
   ASP.datablock_buildings_ascx.__BuildControlSqlDataSource2() in C:\home\site\wwwroot\datablock\buildings.ascx:24
   ASP.datablock_buildings_ascx.__BuildControlTree(datablock_buildings_ascx __ctrl) in C:\home\site\wwwroot\datablock\buildings.ascx:1
   ASP.datablock_buildings_ascx.FrameworkInitialize() +44
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +37
   System.Web.UI.UserControl.InitializeAsUserControl(Page page) +21
   ASP.tall_buildings_aspx.__BuildControlcontent() in c:\home\site\wwwroot\tall-buildings.aspx:37
   ASP.tall_buildings_aspx.__BuildControl__control2() in c:\home\site\wwwroot\tall-buildings.aspx:36
   ASP.tall_buildings_aspx.__BuildControlContent2(Control __ctrl) in c:\home\site\wwwroot\tall-buildings.aspx:13
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +15
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +90
   ASP.commonstyle_master.__BuildControlContentPlaceHolder1() +265
   ASP.commonstyle_master.__BuildControlTree(commonstyle_master __ctrl) +367
   ASP.commonstyle_master.FrameworkInitialize() +59
   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.4690.0