Thank you. I will try this way.
I wondering if anybody else has the same problems.
Hi, I need to use reflection to call some methods from plugin2 to plugin1. Plugin 1 is always installed but I can't reference it in plugin2. How can I resolve IRepository<MyData> ?
using (var scope = iocResolver.CreateScope()) { var coreAssembly= AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(a => a.FullName.Contains("MyPlugin.Core")); var pluginRepositoryType = coreAssembly.GetType("MyPlugin.Core.IPluginRepository"); var pluginRepository= scope.Resolve(pluginRepositoryType ); //... do some method on pluginRepository works.
var genericRepository = scope.Resolve("IRepository<MyData>"); <--- How do this ?
}
Thank you
Hi, the Kestrel version is 1.1.1 (file verision 1.1.1.30217). The message I've posted was taken from Event viewer. This morning another customer found the application pool stopped with the same error.
Every time we found Hosting shuthdown the application pool is stopped and in the Event viewer is present the Kestrel error message. Extract from the Abp log trace.
DEBUG 2017-07-16 00:32:35,102 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL6BOPNLHK5E" sending FIN. DEBUG 2017-07-16 00:32:35,102 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL6BOPNLHK5E" sent FIN with status "0". DEBUG 2017-07-16 00:32:35,102 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL6BOPNLHK5E" stopped. DEBUG 2017-07-16 00:51:03,608 [1 ] soft.AspNetCore.Hosting.Internal.WebHost - Hosting shutdown DEBUG 2017-07-17 08:46:02,323 [1 ] Abp.Modules.AbpModuleManager - Loading Abp modules... DEBUG 2017-07-17 08:46:03,048 [1 ] Abp.Modules.AbpModuleManager - Found 25 ABP modules in total. DEBUG 2017-07-17 08:46:03,063 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Uno.Framework.Web.Startup.FrameworkWebHostModule, Uno.Framework.Web.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2017-07-17 08:46:03,063 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Uno.Framework.Web.FrameworkWebCoreModule, Uno.Framework.Web.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2017-07-17 08:46:03,063 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Uno.Framework.FrameworkApplicationModule, Uno.Framework.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2017-07-17 08:46:03,063 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Uno.Framework.FrameworkCoreModule, Uno.Framework.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2017-07-17 08:46:03,063 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.Zero, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null
We are near to panic!!
Hi, I've installed on several customer the AbpBoilerplate versione 1.5 with angular 2. After some time that the site is running, the web site hosted on IIS hangs and is stopped. Also in our stage and production server we have the same error. NetCore version 1.1.2 and DotNetCore.1.0.4_1.1.2-WindowsHosting The event viewer reports the same error:
Application: Uno.Framework.Web.Host.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ObjectDisposedException at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean ByRef) at System.StubHelpers.StubHelpers.SafeHandleAddRef(System.Runtime.InteropServices.SafeHandle, Boolean ByRef) at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv+NativeMethods.uv_async_send(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvAsyncHandle) at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.async_send(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvAsyncHandle) at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.PostCloseHandle(System.Action`1
This is a very big problem because the site after the error is stopped. Can you help us to resolve this issue?
Thank you.
I've tried to change the Period in DoWork and it seems works. My doubt is only if this is expected or can cause some stranges side effects.
Hi, Is possible to change the Period of a PeriodicBackgroundWorkerBase after it has been initilized ? I would like to change it during time reading the value from database ( eg. 1 minute during day, 15 minutes during night).
Thanks.
Thank you. Your suggestion works.
I've two different varibales that refers to the same logger, but in this particulare case I can survive with this.
Hi, I would like to log same informations when my Worker is initialized, like parameters, options and so on. This is my ctor. The call to repository works, but the Logger doesn't write nothing. On DoWork method the Logger works.
public class IntegrationWorker : PeriodicBackgroundWorkerBase, ISingletonDependency
....
public IntegrationWorker(AbpTimer timer,
IRepository<ConfigurationData> configurationRepository) : base(timer)
{
_impostazioniRepository = impostazioniRepository;
var periodData = _impostazioniRepository.FirstOrDefault(p => p.Parametro == "Polling");
var period = periodData == null ? 15000 : int.Parse(periodData.Value);
Logger.InfoFormat("Integration worker loaded with Period of {0} milliseconds", period);
timer.Period = Period;
}
Is possibile to log on constructor ?
Thank you.
Solved. I was missing base.OnModelCreating.
Thanks
Hi, I'm implementing a worker process with a plugin module. I've three module: Core, Entity Framework and the Worker. The Worker module needs a Repository but at the bootstrap Abp says: System.ApplicationException: Filter name MustHaveTenant not found.
I've used DependsOn attribute through on my modules, but which dependencies I'm missing ?
Thank you.