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 100:            </asp:GridView>
Line 101:   
Line 102:            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
Line 103:                ConnectionString="<%$ ConnectionStrings:CS_class37 %>" 
Line 104:                

Source File: C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleet.aspx    Line: 102

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.fleet_aspx.__BuildControlSqlDataSource1() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleet.aspx:102
   ASP.fleet_aspx.__BuildControlform1() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleet.aspx:23
   ASP.fleet_aspx.__BuildControlTree(fleet_aspx __ctrl) in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\fleet.aspx:1
   ASP.fleet_aspx.FrameworkInitialize() in C:\Inetpub\vhosts\c37lg.co.uk\httpdocs\strnum.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.fleet_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