Server Error in '/' Application.

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

Source Error:


Line 111:            <HeaderStyle BackColor="#EAEAEA" />
Line 112:        </asp:GridView>
Line 113:        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
Line 114:            ConnectionString="<%$ ConnectionStrings:Data_thuvienConnectionString %>" 
Line 115:                       

Source File: D:\Vhosts\th-mnthanhbinh.haiduong.edu.vn\httpdocs\Form\Thu_vien\Form_tim_kiem.aspx    Line: 113

Stack Trace:


[InvalidOperationException: The connection name 'Data_thuvienConnectionString' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +2515954
   ASP.form_thu_vien_form_tim_kiem_aspx.__BuildControlSqlDataSource1() in D:\Vhosts\th-mnthanhbinh.haiduong.edu.vn\httpdocs\Form\Thu_vien\Form_tim_kiem.aspx:113
   ASP.form_thu_vien_form_tim_kiem_aspx.__BuildControlContent2(Control __ctrl) in D:\Vhosts\th-mnthanhbinh.haiduong.edu.vn\httpdocs\Form\Thu_vien\Form_tim_kiem.aspx:30
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   ASP.masterpage_thu_vien_master.__BuildControlContentPlaceHolder1() in D:\Vhosts\th-mnthanhbinh.haiduong.edu.vn\httpdocs\MasterPage_thu_vien.master:124
   ASP.masterpage_thu_vien_master.__BuildControlform1() in D:\Vhosts\th-mnthanhbinh.haiduong.edu.vn\httpdocs\MasterPage_thu_vien.master:49
   ASP.masterpage_thu_vien_master.__BuildControlTree(masterpage_thu_vien_master __ctrl) in D:\Vhosts\th-mnthanhbinh.haiduong.edu.vn\httpdocs\MasterPage_thu_vien.master:1
   ASP.masterpage_thu_vien_master.FrameworkInitialize() in D:\Vhosts\th-mnthanhbinh.haiduong.edu.vn\httpdocs\MasterPage_thu_vien.master.vb:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8774095
   System.Web.UI.Page.get_Master() +51
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175