I built a nopCommerce image with the API plugin by adding the following lines to the build plugins section of the Dockerfile:
WORKDIR /src/Plugins/Nop.Plugin.Misc.WebApi.Frontend
RUN dotnet build Nop.Plugin.Misc.WebApi.Frontend.csproj -c Release
WORKDIR /src/Plugins/Nop.Plugin.Misc.WebApi.Framework
RUN dotnet build Nop.Plugin.Misc.WebApi.Framework.csproj -c Release
WORKDIR /src/Plugins/Nop.Plugin.Misc.WebApi.Backend
RUN dotnet build Nop.Plugin.Misc.WebApi.Backend.csproj -c Release
But, when I try to run the image on my server, I get the following errors:
nopcommerce | Unhandled exception. System.InvalidOperationException: Failed to convert configuration value at 'DistributedCacheConfig:DistributedCacheType' to type 'Nop.Core.Configuration.DistributedCacheType'.
nopcommerce | ---> System.FormatException: redissynchronizedmemory is not a valid value for DistributedCacheType.
nopcommerce | ---> System.ArgumentException: Requested value 'redissynchronizedmemory' was not found.
nopcommerce | at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result)
nopcommerce | at System.Enum.TryParseInt32Enum(RuntimeType enumType, ReadOnlySpan`1 value, Int32 minInclusive, Int32 maxInclusive, Boolean ignoreCase, Boolean throwOnFailure, TypeCode type, Int32& result)
nopcommerce | at System.Enum.TryParse(Type enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
nopcommerce | at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
nopcommerce | at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
nopcommerce | --- End of inner exception stack trace ---
nopcommerce | at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
nopcommerce | at Microsoft.Extensions.Configuration.ConfigurationBinder.TryConvertValue(Type type, String value, String path, Object& result, Exception& error)
nopcommerce | --- End of inner exception stack trace ---
nopcommerce | at Microsoft.Extensions.Configuration.ConfigurationBinder.BindInstance(Type type, BindingPoint bindingPoint, IConfiguration config, BinderOptions options)
nopcommerce | at Microsoft.Extensions.Configuration.ConfigurationBinder.BindProperty(PropertyInfo property, Object instance, IConfiguration config, BinderOptions options)
nopcommerce | at Microsoft.Extensions.Configuration.ConfigurationBinder.BindProperties(Object instance, IConfiguration configuration, BinderOptions options)
nopcommerce | at Microsoft.Extensions.Configuration.ConfigurationBinder.BindInstance(Type type, BindingPoint bindingPoint, IConfiguration config, BinderOptions options)
nopcommerce | at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationSettings(IServiceCollection services, WebApplicationBuilder builder) in /src/Presentation/Nop.Web.Framework/Infrastructure/Extensions/ServiceCollectionExtensions.cs:line 75
nopcommerce | at Program.<Main>$(String[] args) in /src/Presentation/Nop.Web/Program.cs:line 21
nopcommerce exited with code 139
Does anyone have any clue what I'm doing wrong here?