Copied to clipboard

Flag this post as spam?

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


  • dev 3 posts 17 karma points
    Dec 19, 2023 @ 16:39
    dev
    0

    Umbraco Boot failed

    I am getting below error in the log file when I host the site in IIS but works fine in local host.

    **Error :** The specified invariant name 'Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True' wasn't found in the list of registered .NET Data Providers.\r\n at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName, Boolean throwOnError)\r\n at Umbraco.Cms.Infrastructure.Persistence.DbProviderFactoryCreator.CreateFactory(String providerName)\r\n at Umbraco.Cms.Infrastructure.Persistence.UmbracoDatabaseFactory.get_DbProviderFactory()\r\n
    

    Version:

    .Net core - 7.0 Umbraco - 12.3.3 IIS - 10

       "ConnectionStrings": {
        "umbracoDbDSN": "Data Source=./Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
        "umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
      }
    
  • Patrick van Kemenade 101 posts 339 karma points
    Dec 28, 2023 @ 18:14
    Patrick van Kemenade
    0

    Your website in IIS runs under a certain pool and user. This might be caused by the user running the website not having proper right (read/right) on the DB file. Would give the DB or the folder the DB is in full right to everyone temporary to check if this is the issue.

    Also consider for debugging to enter the full path to the DB file, to make sure it is found.

    And another error might be that Microsoft.Data.Sqlite package/dll is not avaiable on your server.

    Would check it in this order, let me know if any of these help.

Please Sign in or register to post replies

Write your reply to:

Draft