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 40: 		 <p> <% int currentmonth=DateTime.Now.Month ; int currentyear=DateTime.Now.Year ;    %>  </p>
Line 41:        <!--#include virtual="~/uiblock/repeater-movies2.htm" -->
Line 42:     <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:films %>"
Line 43:             SelectCommand="movies_search" SelectCommandType="StoredProcedure">
Line 44:               <SelectParameters>

Source File: c:\home\site\wwwroot\list.aspx    Line: 42

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) +1561610
   ASP.list_aspx.__BuildControlSqlDataSource2() in c:\home\site\wwwroot\list.aspx:42
   ASP.list_aspx.__BuildControlContent2(Control __ctrl) in c:\home\site\wwwroot\list.aspx:14
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +15
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +90
   ASP.commonmovie_master.__BuildControlContentPlaceHolder1() in C:\home\site\wwwroot\Commonmovie.master:19
   ASP.commonmovie_master.__BuildControlTree(commonmovie_master __ctrl) in C:\home\site\wwwroot\Commonmovie.master:1
   ASP.commonmovie_master.FrameworkInitialize() +90
   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