ok thanks for the answer. I hang on .. any idea of a timing ?
is there a workaround in the meantime ?
Here you have
à Castle.Windsor.MsDependencyInjection.WindsorRegistrationHelper.RegisterServiceDescriptor(IWindsorContainer container, ServiceDescriptor serviceDescriptor)
à Castle.Windsor.MsDependencyInjection.WindsorRegistrationHelper.CreateServiceProvider(IWindsorContainer container, IServiceCollection services)
à K2.Stratos.Wpf.Logic.ProtoModule.Initialize() dans C:\EhciDev\K2\Stratos\test\K2.Stratos.Wpf\Logic\ProtoModule.cs:ligne 39
à Abp.Modules.AbpModuleManager.<>c.<StartModules>b__15_1(AbpModuleInfo module)
à System.Collections.Generic.List1.ForEach(Action
1 action)
à Abp.Modules.AbpModuleManager.StartModules()
à Abp.AbpBootstrapper.Initialize()
I tried but have an error :
Méthode introuvable : 'Castle.MicroKernel.Registration.ComponentRegistration1<!0> Castle.MicroKernel.Registration.ComponentRegistration
1.UsingFactoryMethod(System.Converter`2<Castle.MicroKernel.IKernel,!!0>, Boolean)'.
here's where i put the code ( i tried before and after then IoCManager.RegisterAsse....... line.
[DependsOn(
typeof(StratosEntityFrameworkCoreModule),
typeof(StratosApplicationModule),
typeof(SellsyModule),
typeof(FreshServiceModule),
typeof(StratosApplicationModule),
typeof(StratosCoreModule))]
public class ProtoModule : K2Module
{
public override void PreInitialize()
{
//Configuration.DefaultNameOrConnectionString = "Default";
IocManager.Register<IAbpSession, ProtoClaimSession>();
IocManager.Register<IStratosServer, StratosWebServer>();
}
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
var services = new ServiceCollection();
IdentityRegistrar.Register(services);
WindsorRegistrationHelper.CreateServiceProvider(IocManager.IocContainer, services);
}
}
Yes i did it like this ... I re-checked all but no luck ...
[DependsOn(
typeof(StratosEntityFrameworkCoreModule),
typeof(StratosApplicationModule),
typeof(SellsyModule),
typeof(FreshServiceModule),
typeof(StratosApplicationModule),
typeof(StratosCoreModule))]
public class ProtoModule : K2Module
{
public override void PreInitialize()
{
//Configuration.DefaultNameOrConnectionString = "Default";
IocManager.Register<IAbpSession, ProtoClaimSession>();
IocManager.Register<IStratosServer, StratosWebServer>();
}
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
}
}
Hello
I'll facing a problem and i can't find the answer. I use a brand new NetCore/Angular that works fine. I add a WPF for prototyping (i'll already done this whith v 2.3 and it works fine) but raises exceptions as i access to ABp Code.
Here is what i have :
L'exception Castle.MicroKernel.Handlers.HandlerException s'est produite HResult=0x80131500 Message=Can't create component 'K2.Stratos.Authorization.Users.UserManager' as it has dependencies to be satisfied.
'K2.Stratos.Authorization.Users.UserManager' is waiting for the following dependencies:
1[[Microsoft.AspNetCore.Identity.IUserValidator
1[[K2.Stratos.Authorization.Users.User, K2.Stratos.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Extensions.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]' which was not registered.1[[Microsoft.AspNetCore.Identity.IPasswordValidator
1[[K2.Stratos.Authorization.Users.User, K2.Stratos.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Extensions.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]' which was not registered.1[[Microsoft.AspNetCore.Identity.IRoleValidator
1[[K2.Stratos.Authorization.Roles.Role, K2.Stratos.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Extensions.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]' which was not registered.I boostraped the app with this code public App() {
_bootstrapper = AbpBootstrapper.Create<ProtoModule>();
//_bootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f => f.UseAbpLog4Net()
// .WithConfig("log4net.config"));
}
protected override async void OnStartup(StartupEventArgs e)
{
_bootstrapper.Initialize();
// await Proto.CurrentWebServer.ConnectAsync();
}
protected override void OnExit(ExitEventArgs e)
{
_bootstrapper.Dispose();
}
can you help me ?
Chris
ok, i unterstoud this. However, i spent a couple of hour to find this problem so, if this post can prevent others from wasting their time, I would be glad :) :)
Hi
I use Core & Angular Zero
I unterstand that the default tenant Id should be 1. But if the first seedings fails, the Id will be 2, 3 or more.
To reproduce, try to add a Custom Builder and make it fail (on a newly created DB)
Is this a bug or am i false ?