When I noticed the Kentico installer screen when navigating to the CMS, I figured that their might be something broken in the database. Check for the setting Allow Azure services and resources to access this server and verify that it is enabled. In Azure this can be verified in the SQL Server Azure resource within the Firewalls and virtual networks tab. In case that your setting keys are fine it might be worth to check if your application is being blocked by the firewall hence not having access to the SQL database. This obviously did not fix my setup and instead got me on the wrong track thinking that my MVC application could not access the Kentico database. The yellow screen error message mentions the application setting: CMSWaitForDatabaseAvailable. I will leave out how our source control got in this state and directly jump to some tips that helped me figure out what went wrong. It was after restarting the server that I faced the "Cannot access the database" error message. When you run the ContinuousIntegration.exe -r command with this setup then you can say goodbye □ to your Kentico settings.Īt first I did not directly notice the issue because most of the settings are still cached when working with the CMS. the nfig file did not mark the cms.settingskey as excluded object type.the CI repository folder did not contain the Kentico settings keys.In my case I had restored the Kentico content and objects using the continuous integration cli with the following conflicts: Let me start by pointing out what the issue was, namely the lack of the settings keys in my Kentico database. Please install the database externally and set a correct connection string.Īlternatively, you can use web.config key CMSWaitForDatabaseAvailable or set property CMSApplication.WaitForDatabaseAvailable prior to the API initialization to let the application intentionally wait until the database is ready. With this post I hope to save you some valuable debugging time when you unexpectedly □ encounter the Kentico Installer when opening the CMS or in case of viewing MVC see the following yellow screen error message:Ĭannot access the database specified by the 'CMSConnectionString' connection string.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |