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 33:       <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.golden-share.com%2Fshow.aspx%3Fnew%3D%257B0%257D&amp;src=sdkpreparse" class="fb-xfbml-parse-ignore">Share</a>
Line 34:   </div>--%>
Line 35:      <asp:SqlDataSource ID="News_detales" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [News] WHERE ([ID_news] = ?)">
Line 36:         <SelectParameters>
Line 37:             <asp:QueryStringParameter DefaultValue="-1" Name="Id_news" QueryStringField="New" />

Source File: d:\WWWRoot\golden-share.com\www\show.aspx    Line: 35

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.show_aspx.__BuildControlNews_detales() in d:\WWWRoot\golden-share.com\www\show.aspx:35
   ASP.show_aspx.__BuildControlContent2(Control __ctrl) in d:\WWWRoot\golden-share.com\www\show.aspx:14
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +15
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +90
   ASP.goldenshare_master.__BuildControlContentPlaceHolder1() in d:\WWWRoot\golden-share.com\www\Goldenshare.master:146
   ASP.goldenshare_master.__BuildControlform1() in d:\WWWRoot\golden-share.com\www\Goldenshare.master:52
   ASP.goldenshare_master.__BuildControlTree(goldenshare_master __ctrl) in d:\WWWRoot\golden-share.com\www\Goldenshare.master:1
   ASP.goldenshare_master.FrameworkInitialize() in d:\WWWRoot\golden-share.com\www\Goldenshare.master.cs:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +37
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +697
   System.Web.UI.Page.get_Master() +56
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +302


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