Where is the connectionstring stored in Nopcommerce 4.40?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 年 前
Hello. After some intense googling I've found out that the connection string should be here: \Presentation\Nop.Web\App_Data\appsettings.json.
But this is all that's there. There's no connection string. Where is the connection string?
{
  "CacheConfig": {
    "DefaultCacheTime": 60,
    "ShortTermCacheTime": 3,
    "BundledFilesCacheTime": 120
  },
  "HostingConfig": {
    "UseHttpClusterHttps": false,
    "UseHttpXForwardedProto": false,
    "ForwardedHttpHeader": ""
  },
  "DistributedCacheConfig": {
    "DistributedCacheType": "redis",
    "Enabled": false,
    "ConnectionString": "127.0.0.1:6379,ssl=False",
    "SchemaName": "dbo",
    "TableName": "DistributedCache"
  },
  "AzureBlobConfig": {
    "ConnectionString": "",
    "ContainerName": "",
    "EndPoint": "",
    "AppendContainerName": true,
    "StoreDataProtectionKeys": false,
    "DataProtectionKeysContainerName": "",
    "DataProtectionKeysVaultId": ""
  },
  "InstallationConfig": {
    "DisableSampleData": false,
    "DisabledPlugins": "",
    "InstallRegionalResources": true
  },
  "PluginConfig": {
    "ClearPluginShadowDirectoryOnStartup": true,
    "CopyLockedPluginAssembilesToSubdirectoriesOnStartup": false,
    "UseUnsafeLoadAssembly": true,
    "UsePluginsShadowCopy": true
  },
  "CommonConfig": {
    "DisplayFullErrorStack": false,
    "UserAgentStringsPath": "~/App_Data/browscap.xml",
    "CrawlerOnlyUserAgentStringsPath": "~/App_Data/browscap.crawlersonly.xml",
    "UseSessionStateTempDataProvider": false,
    "MiniProfilerEnabled": false,
    "ScheduleTaskRunTimeout": null,
    "StaticFilesCacheControl": "public,max-age=31536000",
    "SupportPreviousNopcommerceVersions": true,
    "PluginStaticFileExtensionsBlacklist": ""
  },
  "RedisConfig": {
    "Enabled": false,
    "ConnectionString": "127.0.0.1:6379,ssl=False",
    "DatabaseId": null,
    "UseCaching": false,
    "StoreDataProtectionKeys": false,
    "StorePluginsInfo": false,
    "IgnoreTimeoutException": false
  }
}
2 年 前
Found out now that it was in dataSettings not appsettings.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.