Server Error in '/' Application.

Cannot open database "Kentico-CGN" requested by the login. The login failed.
Login failed for user 'Kentico-CGN'.

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.Data.SqlClient.SqlException: Cannot open database "Kentico-CGN" requested by the login. The login failed.
Login failed for user 'Kentico-CGN'.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[SqlException (0x80131904): Cannot open database "Kentico-CGN" requested by the login. The login failed.
Login failed for user 'Kentico-CGN'.]
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +683
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +249
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +1820
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +396
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +70
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +354
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +754
   System.Data.SqlClient.SqlConnection.Open() +267
   CMS.DataEngine.AbstractDataConnection.Open() +398
   CMS.DataProviderSQL.DataConnection.PrepareCommand(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean allowTransaction, Boolean& closeConnection, Boolean& commitTransaction) +1045
   CMS.DataProviderSQL.DataConnection.ExecuteReader(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, CommandBehavior commandBehavior) +145

[Exception: [DataConnection.ExecuteQuery]: Query: Proc_CMS_SettingsKey_SelectGeneration: caused exception: Cannot open database "Kentico-CGN" requested by the login. The login failed.
Login failed for user 'Kentico-CGN'.]
   CMS.DataProviderSQL.DataConnection.ExecuteReader(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, CommandBehavior commandBehavior) +412
   CMS.DataEngine.AbstractDataConnection.CMS.SettingsProvider.IDataConnection.ExecuteReader(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, CommandBehavior commandBehavior) +83
   CMS.SettingsProvider.SqlHelperClass.ExecuteReader(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, CommandBehavior commandBehavior, IDataConnection conn) +316
   CMS.SettingsProvider.SettingsKeyProvider.LoadGenerationReader(Int32 generation, Object parameter) +349
   CMS.SettingsProvider.ProviderDictionaryCollection.LoadGeneration(Int32 generation) +340
   CMS.SettingsProvider.ProviderDictionaryCollection.LoadDefaultItems() +126
   CMS.SettingsProvider.ProviderDictionaryCollection.LoadNextGeneration() +76
   CMS.SettingsProvider.ProviderDictionary`2.LoadNextGeneration() +82
   CMS.SettingsProvider.ProviderStringDictionaryTemplate`1.Contains(String key, ValueType& value) +348
   CMS.SettingsProvider.ProviderStringValueDictionary.Contains(String key, String& value) +90
   CMS.SettingsProvider.SettingsKeyProvider.GetValue(String siteName, String globalKeyName) +453
   CMS.SettingsProvider.SettingsKeyProvider.GetValue(String keyName) +144
   CMS.SettingsProvider.SettingsKeyProvider.GetBoolValue(String keyName) +118
   CMS.GlobalHelper.ScriptHelper.get_ScriptMinificationEnabled() +42
   CMS.GlobalHelper.ScriptHelper.GetScriptUrl(String url, Boolean minify) +92
   CMS.GlobalHelper.ScriptHelper.RegisterClientScriptInclude(Page page, Type type, String key, String url, Boolean minify) +61
   CMS.GlobalHelper.ScriptHelper.RegisterScriptFile(Page page, String url, Boolean minify) +218
   CMS.GlobalHelper.ScriptHelper.RegisterScriptFile(Page page, String url) +51
   CMS.GlobalHelper.ScriptHelper.RegisterTitleScript(Page page, String titlePart) +137
   CMSAdminControls_UI_PageElements_PageTitle.Page_PreRender(Object sender, EventArgs e) +1133
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +255
   System.Web.UI.Control.OnPreRender(EventArgs e) +195
   CMS.ExtendedControls.AbstractUserControl.OnPreRender(EventArgs e) +126
   System.Web.UI.Control.PreRenderRecursiveInternal() +301
   System.Web.UI.Control.PreRenderRecursiveInternal() +457
   System.Web.UI.Control.PreRenderRecursiveInternal() +457
   System.Web.UI.Control.PreRenderRecursiveInternal() +457
   System.Web.UI.Control.PreRenderRecursiveInternal() +457
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5555


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