Server Error in '/' Application.

No connection string named 'academy_dbEntities' could be found in the application config file.

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: No connection string named 'academy_dbEntities' could be found in the application config file.

Source Error:


Line 76: protected string GetPrevItemLink() Line 77: { Line 78: int? id = IndexPageFacade.GetPrevID(NewsItem); Line 79: if (id != null) Line 80: {

Source File: c:\sites\sites2010\yozma.mpage.co.il\wwwroot\News\NewsItem.aspx.cs    Line: 78

Stack Trace:


[InvalidOperationException: No connection string named 'academy_dbEntities' could be found in the application config file.] System.Data.Entity.Internal.LazyInternalConnection.get_ConnectionHasModel() +434 System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +234 System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +26 System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +71 System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21 System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +44 System.Linq.Queryable.OrderByDescending(IQueryable`1 source, Expression`1 keySelector) +85 App.IndexPage.IndexPageFacade.GetPrevID(NewsItem item) +555 News_NewsItem.GetPrevItemLink() in c:\sites\sites2010\yozma.mpage.co.il\wwwroot\News\NewsItem.aspx.cs:78 ASP.news_newsitem_aspx.__DataBind__control3(Object sender, EventArgs e) in c:\sites\sites2010\yozma.mpage.co.il\wwwroot\News\NewsItem.aspx:17 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +304 System.Web.UI.Control.DataBindChildren() +12659735 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321 System.Web.UI.Control.DataBindChildren() +12659735 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321 System.Web.UI.Control.DataBindChildren() +12659735 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321 System.Web.UI.Control.DataBindChildren() +12659735 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321 News_NewsItem.Page_Load(Object sender, EventArgs e) in c:\sites\sites2010\yozma.mpage.co.il\wwwroot\News\NewsItem.aspx.cs:27 BasePage.OnLoad(EventArgs e) +258 SitePage.OnLoad(EventArgs e) +83 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


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