Server Error in '/' Application.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: No connection string named 'PEntity' could be found in the application config file.]
   System.Data.Entity.Internal.LazyInternalConnection.get_ConnectionHasModel() +341
   System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +642
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +25
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +69
   System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
   System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +66
   System.Linq.Queryable.SelectMany(IQueryable`1 source, Expression`1 collectionSelector, Expression`1 resultSelector) +78
   PF.Code.Db.Queries.GetUserPosts(PEntity dc, Int32 sectionId, String userName, Int32 skip, Int32 take, Boolean queryTopics, Int32 orderGalleries) +51198
   PF.Themes.Mobile.include.UserPosts.GetPagedDataSource(PEntity dc) +320
   PF.Themes.Mobile.include.UserPosts.Page_Load(Object sender, EventArgs e) +114
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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