Server Error in '/' Application.

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

Source Error:


Line 89:             <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
Line 90:         </asp:GridView>
Line 91:         <asp:SqlDataSource ID="sql_tours" runat="server" 
Line 92:             ConnectionString="<%$ ConnectionStrings:CS_class37 %>" 
Line 93:             SelectCommand="SELECT [tbl_tours].[tour_ID], [tbl_tours].[Traction], [tbl_tours].[Destination], [tbl_tours].[Origin], [tbl_tours].[Name], [tbl_tours].[Who], [tbl_tours].[Date], [tbl_tours].[realdate], [tbl_tours].[main_pres], [tbl_tour_html].[HTML] FROM [tbl_tours] LEFT JOIN [tbl_tour_html] ON [tbl_tours].[Who] = [tbl_tour_html].[Who] ORDER BY [tbl_tours].[realdate]">

Source File: C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\tours.aspx    Line: 91

Stack Trace:


[InvalidOperationException: The connection name 'CS_class37' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1561982
   ASP.tours_aspx.__BuildControlsql_tours() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\tours.aspx:91
   ASP.tours_aspx.__BuildControlform1() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\tours.aspx:20
   ASP.tours_aspx.__BuildControlTree(tours_aspx __ctrl) in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\tours.aspx:1
   ASP.tours_aspx.FrameworkInitialize() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\tours.aspx.vb:912307
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
   System.Web.UI.Page.ProcessRequest(HttpContext context) +62
   ASP.tours_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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