Copied to clipboard

Flag this post as spam?

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


  • Ivan 1 post 71 karma points
    May 03, 2023 @ 13:20
    Ivan
    0

    Umbraco could not connect to the database

    Hello, I'm running the API on localhost and getting this error:

    enter image description here

    In logs I find:

        "Umbraco.Core.Exceptions.BootFailedException: A connection string is configured but Umbraco could not connect to the database.
          at Umbraco.Core.RuntimeState.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory) in D:\\a\\1\\s\\src\\Umbraco.Core\\RuntimeState.cs:line 188
          at Umbraco.Core.Runtime.CoreRuntime.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory, IProfilingLogger profilingLogger) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 375
          at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 179"
    

    I haven't made any changes and it was working until yesterday and now I'm constantly getting this error. Using sql express and connection string is correct, I can connect to database through ssms.

    I've been browsing through forum and tried suggested solutions but nothing helped. I've read that it may be caused by permissions in App_Data folder of project - I have this:

    enter image description here

    Do I need to change something here? Can anyone help please?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies