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 94:             </asp:GridView>
Line 95: 
Line 96:     <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
Line 97:         ConnectionString="<%$ ConnectionStrings:CS_class37 %>" 
Line 98:         SelectCommand="SELECT [tbl_workings].NUMBER, [tbl_workings].Working_No, [tbl_workings].DETAILS, [tbl_workings].DATE, [tbl_workings].TEMPDATE2, [tbl_workings].DATEORDER, [tbl_workings].Miles, [tbl_workings_html].HTML_URL, [tbl_workings_html].Doc_Type FROM [tbl_workings] LEFT JOIN [tbl_workings_html] ON [tbl_workings].Fleet_ID = [tbl_workings_html].[Fleet_ID] WHERE ((([tbl_workings].DATE) = @Date)) ORDER BY [tbl_workings].Working_No, [tbl_workings].DATEORDER;">

Source File: C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleetdate.aspx    Line: 96

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.fleetdate_aspx.__BuildControlSqlDataSource1() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleetdate.aspx:96
   ASP.fleetdate_aspx.__BuildControlform1() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleetdate.aspx:19
   ASP.fleetdate_aspx.__BuildControlTree(fleetdate_aspx __ctrl) in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleetdate.aspx:1
   ASP.fleetdate_aspx.FrameworkInitialize() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleetdate.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.fleetdate_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