验证服务描述符"服务类型:Microsoft.AspNetCore.Hosting.Server.IServer 生存期:单例



无法比较数组中的两个元素。验证服务描述符"ServiceType:Microsoft"时出错。AspNetCore。主机。服务器IServer生存期:Singleton实现类型:Microsoft。AspNetCore。服务器Kestrel。果心KestrelServerImpl":无法比较数组中的两个元素。无法构造某些服务(验证服务描述符"ServiceType:Microsoft.AspNetCore.Hosting.Server.IServer生存期:Singleton ImplementationType:Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl"时出错:无法比较数组中的两个元素。(">

我正在做一个点网核心项目,在那里我得到了这些异常。代码是

services.AddEthereumWallet();
services.AddRippleRegistration();
services.AddALTCoinRegisteration();
services.AddWHCRegisteration();
services.AddSingleton<DapperContext>();
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddScoped<IGroupRepository, GroupRepository>();
services.AddScoped<IGroupUserRepository, GroupUserRepository>();
services.AddScoped<IMeetingRespository, MeetingRepository>();
services.AddScoped<IMeetingUserRespository, MeetingUserRepository>();
services.AddScoped<IDeviceRepository, DeviceRepository>();
services.AddScoped<ITranslationRepository, TranslationRepository>();
services.AddScoped<IUserActivityRepository, UserActivityRepository>();
services.AddScoped<IUserInfoRepository, UserInfoRepository>();
services.AddScoped<ICallRepository, CallRepository>();
services.AddScoped<ILoginRepository, LoginRepository>();
services.AddScoped<IChatRepository, ChatRepository>();
services.AddScoped<IContactRepository, ContactRepository>();
services.AddScoped<IAccountRepository, AccountRepository>();
services.AddScoped<IWalletRepository, WalletRepository>();
services.AddScoped<IGroupChatRepository, GroupChatRepository>();
services.AddControllers();

我搜索了很多,但没有找到任何解决方案。

根据您的框架更新您的NuGet包。您在项目中使用Bittrex库和以太坊节点某些Nuget包与您的解决方案项目冲突。

最新更新