【问题标题】:When I am trying to run nopcommerc 4.10 project I am getting error当我尝试运行 nopcommerc 4.10 项目时出现错误
【发布时间】:2018-11-23 02:59:42
【问题描述】:

当我当时尝试运行nopcommerc 4.10 项目时,我收到了这种类型的错误:

ReflectionTypeLoadException:无法加载一个或多个 请求的类型。无法加载类型“System.Net.ICertificatePolicy” 从程序集'系统,版本=4.0.0.0,文化=中性, PublicKeyToken=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()

请帮帮我。

谢谢,乌格雷什。

【问题讨论】:

  • 运行正常,针对 SDK 2.1,需要先安装。

标签: asp.net-mvc asp.net-core nopcommerce


【解决方案1】:

我认为您的某些 dll 与 asp.net core 不兼容。

因为 nopcommerce 4.10 的目标是 dot net core。

所以,请仔细检查。

您是否使用了第三方 dll?

【讨论】:

    猜你喜欢
    • 2019-09-23
    • 2022-11-25
    • 1970-01-01
    • 2022-07-07
    • 2020-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多