Server Error in '/' Application.

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

Source Error:


Line 104:                                        <SeparatorStyle BorderColor="Navy" />
Line 105:                                    </asp:DataList>
Line 106:                                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:eShopConnectionString %>"
Line 107:                                        SelectCommand="SELECT * FROM [TProduct] WHERE ([ProductGuID] = @ProductGuID) ORDER BY [ProductID] DESC">
Line 108:                                        <SelectParameters>

Source File: d:\vhosts\keyvannashr.com\httpdocs\fa\UI\gallery.ascx    Line: 106

Stack Trace:


[InvalidOperationException: The connection name 'eShopConnectionString' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1905133
   ASP.fa_ui_gallery_ascx.__BuildControlSqlDataSource1() in d:\vhosts\keyvannashr.com\httpdocs\fa\UI\gallery.ascx:106
   ASP.fa_ui_gallery_ascx.__BuildControlView0() in d:\vhosts\keyvannashr.com\httpdocs\fa\UI\gallery.ascx:21
   ASP.fa_ui_gallery_ascx.__BuildControlMultiView1() in d:\vhosts\keyvannashr.com\httpdocs\fa\UI\gallery.ascx:20
   ASP.fa_ui_gallery_ascx.__BuildControlTree(fa_ui_gallery_ascx __ctrl) in d:\vhosts\keyvannashr.com\httpdocs\fa\UI\gallery.ascx:1
   ASP.fa_ui_gallery_ascx.FrameworkInitialize() in d:\vhosts\keyvannashr.com\tmp\root\bab189bf\c2a34484\App_Web_kulspv4a.4.cs:0
   System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) +355
   System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) +226
   Manager.CommonUI.BasePage.OnPreInit(EventArgs e) in D:\Works\keyvan\Manage\Manager.CommonUI\BaseAspPage\BasePage.cs:48
   System.Web.UI.Page.PerformPreInit() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335


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