当我尝试运行nopcommerc 4.10
项目时,我遇到了这种类型的错误:
ReflectionTypeLoadException:无法加载一个或多个 要求的类型。无法加载类型' System.Net.ICertificatePolicy' 来自assembly' System,Version = 4.0.0.0,Culture = neutral, 公钥= b77a5c561934e089'
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
System.Reflection.RuntimeAssembly.get_DefinedTypes()
System.Linq.Enumerable+SelectManySingleSelectorIterator<TSource, TResult>.ToArray()
System.Linq.Enumerable.ToArray<TSource>(IEnumerable<TSource> source)
AutoMapper.ServiceCollectionExtensions.AddAutoMapperClasses(IServiceCollection services, Action<IMapperConfigurationExpression> additionalInitAction, IEnumerable<Assembly> assembliesToScan)
Nop.Core.Infrastructure.NopEngine.AddAutoMapper(IServiceCollection services, ITypeFinder typeFinder) in NopEngine.cs
services.AddAutoMapper();
Nop.Core.Infrastructure.NopEngine.ConfigureServices(IServiceCollection services, IConfigurationRoot configuration) in NopEngine.cs
AddAutoMapper(services, typeFinder);
Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfigurationRoot configuration) in ServiceCollectionExtensions.cs
var serviceProvider = engine.ConfigureServices(services, configuration);
Nop.Web.Startup.ConfigureServices(IServiceCollection services) in Startup.cs
return services.ConfigureApplicationServices(Configuration);
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
请帮助我。
谢谢,Ugresh。
答案 0 :(得分:1)
我认为您的某些dll与asp.net核心不兼容。
因为nopcommerce 4.10的目标是点网核心。
所以,请仔细检查。
您使用了第三方dll吗?