Server Error in '/AP6' Application.

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

Source Error:


Line 55:                 &nbsp;</td>
Line 56:             <td class="style6">
Line 57:                 <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
Line 58:                     ConnectionString="<%$ ConnectionStrings:QAConnectionString2 %>" 
Line 59:                     SelectCommand="SELECT DISTINCT [CR] FROM [CR]"></asp:SqlDataSource>

Source File: D:\web\AP6\default.aspx    Line: 57

Stack Trace:


[InvalidOperationException: The connection name 'QAConnectionString2' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1909592
   ASP.default_aspx.__BuildControlSqlDataSource1() in D:\web\AP6\default.aspx:57
   ASP.default_aspx.__BuildControlContent2(Control __ctrl) in D:\web\AP6\default.aspx:47
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +103
   ASP.masterpage_master.__BuildControlContentPlaceHolder1() in D:\web\AP6\MasterPage.master:190
   ASP.masterpage_master.__BuildControlform1() in D:\web\AP6\MasterPage.master:78
   ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in D:\web\AP6\MasterPage.master:1
   ASP.masterpage_master.FrameworkInitialize() in D:\web\AP6\MasterPage.master.vb:912307
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1179
   System.Web.UI.Page.get_Master() +65
   System.Web.UI.Page.ApplyMasterPage() +18
   System.Web.UI.Page.PerformPreInit() +62
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


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