Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rakesh Kumar 22 posts 167 karma points
    Sep 17, 2019 @ 10:53
    Rakesh Kumar
    0

    Boot failed when I set up database on Azure

    When I set up my site database on Azure then I have getting an error on my browser

    Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
    
    -> Umbraco.Core.Exceptions.BootFailedException: A connection string is configured but Umbraco could not connect to the database.
      at Umbraco.Core.RuntimeState.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory, ILogger logger)
      at Umbraco.Core.Runtime.CoreRuntime.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory, IProfilingLogger profilingLogger)
      at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)
    
  • Ollie Storey 17 posts 172 karma points
    Sep 17, 2019 @ 10:55
    Ollie Storey
    0

    Are the site and database both hosted in Azure?

  • Rakesh Kumar 22 posts 167 karma points
    Sep 17, 2019 @ 11:01
    Rakesh Kumar
    0

    Yes, both are on Azure

  • Ollie Storey 17 posts 172 karma points
    Sep 17, 2019 @ 11:16
    Ollie Storey
    1

    Go to your app service and check the configuration section.

    Any connection strings in the configuration tab will overwrite whatever you have in your web.config

    If you look at the connection strings section in Advanced Edit mode your connection string should look similar to this

    [
      {
        "name": "umbracoDbDSN",
        "value": "Data Source=tcp:my.database.windows.net,1433;Initial Catalog=DatabaseName;User ID=dbadmin;Password=FakePassword",
        "type": "SQLAzure",
        "slotSetting": true
      }
    ]
    
Please Sign in or register to post replies

Write your reply to:

Draft