Resolving Could not find configuration node for Core Database Error – Sitecore 8.2
- By : Mydatahack
- Category : Sitecore, Web Technologies
- Tags: Sitecore 8.2, Troubleshoot, web.config
Resolving Could not find configuration node for Core Database Error – Sitecore 8.2
Web.config file is minimal when you initially create ASP.NET project. When you install Sitecore, the config file is already in the web root folder and we don’t want to override it when publishing it first time. It is best to delete Web.config from your project.
The error below is likely to be caused by the Web.config file being replaced. The fix is to copy the Web.config from the original Sitecore installation into the web root folder.
Error
Could not find configuration node: databases/database[@id='core'] 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: Could not find configuration node: databases/database[@id='core'] 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: Could not find configuration node: databases/database[@id='core']] Sitecore.Configuration.DefaultFactory.GetConfigNode(String xpath, Boolean assert) +500 Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert) +273 Sitecore.Configuration.DefaultFactory.GetDatabase(String name, Boolean assert) +177 Sitecore.Configuration.DefaultFactory.GetDatabase(String name) +55 Sitecore.DefaultClient.get_CoreDatabase() +23 Sitecore.Web.Authentication.DefaultTicketManager.GetTicketByKey(String ticketKey) +22 Sitecore.Web.Authentication.DefaultTicketManager.GetTicket(String ticketId, Boolean returnExpired) +59 Sitecore.Web.Authentication.DefaultTicketManager.IsTicketValid(String ticketId) +49 Sitecore.DefaultPage.Page_Load(Object sender, EventArgs e) +96 System.Web.UI.Control.OnLoad(EventArgs e) +106 System.Web.UI.Control.LoadRecursive() +68 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785