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 1:  <%@ Page Language="C#" MasterPageFile="~/commonmovie.Master" 
Line 2:  CodeFile="movie-details.aspx.cs" Inherits="company" 
Line 3:   CodeFileBaseClass="BasePage"

Source File: c:\home\site\wwwroot\Movie-Details.aspx    Line: 1

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.movie_details_aspx.__BuildControlSqlDataSource2() in c:\home\site\wwwroot\Movie-Details.aspx:1
   ASP.movie_details_aspx.__BuildControl__control2() in c:\home\site\wwwroot\Movie-Details.aspx:25
   ASP.movie_details_aspx.__BuildControlContent2(Control __ctrl) in c:\home\site\wwwroot\Movie-Details.aspx:13
   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