Server Error in '/' Application.

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

Source Error:


Line 146:                                                    </LayoutTemplate>
Line 147:                                                </asp:ListView>
Line 148:                                                <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
Line 149:                                                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"          
Line 150:                                                    SelectCommand="SELECT [id_cat], [id_parent], [cat_ner] FROM [baraa_cat] WHERE ([id_parent] = @id_parent) ORDER BY [id_cat]">

Source File: d:\inetpub\vhosts\fff.mn\httpdocs\Buteegdehuun.aspx    Line: 148

Stack Trace:


[InvalidOperationException: The connection name 'ConnectionString' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1561610
   ASP.buteegdehuun_aspx.__BuildControlSqlDataSource4() in d:\inetpub\vhosts\fff.mn\httpdocs\Buteegdehuun.aspx:148
   ASP.buteegdehuun_aspx.__BuildControlform1() in d:\inetpub\vhosts\fff.mn\httpdocs\Buteegdehuun.aspx:15
   ASP.buteegdehuun_aspx.__BuildControlTree(buteegdehuun_aspx __ctrl) in d:\inetpub\vhosts\fff.mn\httpdocs\Buteegdehuun.aspx:1
   ASP.buteegdehuun_aspx.FrameworkInitialize() in d:\inetpub\vhosts\fff.mn\httpdocs\Buteegdehuun.aspx.cs:912308
   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.buteegdehuun_aspx.ProcessRequest(HttpContext context) in App_Web_4yx215dy.2.cs:0
   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.4700.0