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:         </div>
Line 34: 
Line 35:       <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [kupa] WHERE ([onay] = ?) ORDER BY [okuma] DESC, [id] DESC">
Line 36:         <SelectParameters>
Line 37:             <asp:Parameter DefaultValue="True" Name="onay" Type="Boolean" />

Source File: c:\inetpub\vhosts\simaydavetiye.com\httpdocs\hediyelik_kupa.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) +1909592
   ASP.hediyelik_kupa_aspx.__BuildControlSqlDataSource1() in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\hediyelik_kupa.aspx:35
   ASP.hediyelik_kupa_aspx.__BuildControlContent2(Control __ctrl) in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\hediyelik_kupa.aspx:5
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +103
   ASP.masterpagesayfa_master.__BuildControlChildContent2() in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\MasterPageSayfa.master:61
   ASP.masterpagesayfa_master.__BuildControlContent2(Control __ctrl) in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\MasterPageSayfa.master:8
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +103
   ASP.masterpage_master.__BuildControlContentPlaceHolder1() in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\MasterPage.master:144
   ASP.masterpage_master.__BuildControlform1() in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\MasterPage.master:67
   ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\MasterPage.master:1
   ASP.masterpage_master.FrameworkInitialize() in c:\inetpub\vhosts\simaydavetiye.com\httpdocs\MasterPage.master.cs:912308
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1179
   System.Web.UI.MasterPage.get_Master() +65
   System.Web.UI.MasterPage.ApplyMasterRecursive(MasterPage master, IList appliedMasterFilePaths) +23
   System.Web.UI.Page.ApplyMasterPage() +157
   System.Web.UI.Page.PerformPreInit() +62
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


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