book
Article ID: 153110
calendar_today
Updated On:
Issue/Introduction
Altiris.NS.Exceptions.DatabaseNotReadyException: Failed to construct DatabaseContext object. Connection to database failed. --> Altiris.NS.Exceptions.DatabaseNotReadyException: SQL Server or Catalog are not set in CoreSettings.Config
a.log error:
Priority: 1
Date: 11.07.2006 7:17:18
Tick Count: 58102984
Host Name: S036APL004007
Process: w3wp.exe (2848)
Thread ID: 5580
Module: AltirisNativeHelper.dll
Source: Altiris.InventoryRuleManagement.Resources.InventoryRuleResource.GetAllRuleGuidsForDataClass
Description: Altiris.NS.Exceptions.DatabaseNotReadyException: Failed to construct DatabaseContext object. Connection to database failed. ---> Altiris.NS.Exceptions.DatabaseNotReadyException: SQL Server or Catalog are not set in CoreSettings.Config
at Altiris.NS.Utilities.DbUtils.CreateConnection(String configKey)
at Altiris.NS.ContextManagement.DatabaseContext..ctor(ContextIdentity identity, Boolean beginTransaction, IsolationLevel isolationLevel)
--- End of inner exception stack trace ---
at Altiris.NS.ContextManagement.DatabaseContext..ctor(ContextIdentity identity, Boolean beginTransaction, IsolationLevel isolationLevel)
at Altiris.NS.ContextManagement.DatabaseContext.GetContext(Boolean createNewTransaction, IsolationLevel isolationLevel, ContextIdentity identity, Boolean independentContext)
at Altiris.NS.ContextManagement.DatabaseContext.GetContext()
at Altiris.InventoryRuleManagement.Resources.InventoryRuleResource.GetAllRuleGuidsForDataClass(Guid resultsDataClassGuid)
Cause
CoreSettings.config did not have the correct settings or was corrupt.
Resolution
run http://<servername>/Altiris/NS/Install/NSSetup.aspx
After going through this, it will reconfigure the server, including rebuilding the CoreSettings.aspx file.
This should resolve the issue.
Applies To
Notification Server 6.0.6074 Service Pack 3
CMS Level 1
AMS Level 2
Windows Server 2003 Enterprise Edition Service Pack 1
SQL 2000 SP3a ( 8.00.760)