Hi,
Windows service application based on console application (with abp bootstrapper etc.) works fine on windows >8.1 but fails on windows server 2012 with error below.
Perhaps you can retrieve more info out of it. It seems to be a dependency problem? I'm not sure and if so - where can I obtain extra info.
Error from eventlog right after starting service:
Application: Intertek.BI.ApplicationService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Castle.MicroKernel.ComponentNotFoundException
at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(System.Type, System.Collections.IDictionary, Castle.MicroKernel.IReleasePolicy)
at Castle.MicroKernel.DefaultKernel.Resolve(System.Type, System.Collections.IDictionary)
at Castle.Windsor.WindsorContainer.Resolve[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]
at Abp.Dependency.IocManager.Resolve[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]
at Abp.AbpKernelModule.Shutdown()
at Abp.Modules.AbpModuleManager+<>c.<ShutdownModules>b__9_0(Abp.Modules.AbpModuleInfo)
at System.Collections.Generic.List1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ForEach(System.Action
1<System.__Canon>)
at Abp.Modules.AbpModuleManager.ShutdownModules()
at Abp.AbpBootstrapper.Dispose()
at Intertek.BI.ApplicationService.ApplicationService..ctor()
Exception Info: System.Exception at Intertek.BI.ApplicationService.ApplicationService..ctor() at Intertek.BI.ApplicationService.Program.Main(System.String[])
Hi,
When is de IRepository supporting multiple deletes (EF 6 standard funct)?
db.People.RemoveRange(db.People.Where(x => x.State == "CA"));
Thanks,
Hi,
a very odd issue here. While debugging and running the application I change some frontend angular code, the dynamic web api layer then gets rebuild. After that - two of my app services are returning 'internal server error' errors from all methods. After a complete rebuild of the solution, it's working again,including the two services. Both failing services are having a reference to a custom module Reporting.Core
When debugging the internal server error, is says it has dependencies that failed registering: "Can't create component 'Intertek.BI.Reporting.Reports.ReportAppService' as it has dependencies to be satisfied.\r\n\r\n'Intertek.BI.Reporting.Reports.ReportAppService' is waiting for the following dependencies:\r\n- Service 'Intertek.BI.Reporting.Core.ReportManager' which was not registered.\
How should I proceed into resolving the cause of this error which only occurs after some sort of rebuild after frontend code change!
Hi,
When debugging the application and after changing some frontend angular code, the dynamic web api layer gets rebuild. After that - two of my app services are returning 'internal server error' errors from all methods. The log file is empty.
After a complete rebuild of the solution, it's working again.
As for both of the services, the normal pattern is used. I'm using all last libs and Zero code. It's a fresh template.
Fiddler is giving no extra info - how can I debug this?
Regards, P
Hi,
while doing Upgrade to ABP (zero) 0.9.* (multi database tenant support) I ran into the problem that TUser is not recognized. Check below. I already sent Halil a message since this is a breaking issue for us.
I did read the blog: <a class="postlink" href="http://volosoft.com/aspnet-boilerplate-v0-9-and-aspnet-zero-v1-10-have-been-released/">http://volosoft.com/aspnet-boilerplate- ... -released/</a>
enant, Role and User Entities Tenant, Role and User entities are derived from AbpTenant, AbpRole and AbpUser. These base classes are generic classes and their generic parameters are changed:
AbpUser<TTenant, TUser> become AbpUser<TUser> AbpRole<TTenant, TUser> become AbpRole<TUser> AbpTenant<TTenant, TUser> become AbpTenant<TUser> As you see, we removed TTenant parameters since in database per tenant architecture, we can not define navigation properties from tenant users to tenant entity, they may be in different databases.
Hi,
want to disable softdelete at update of a certain entity like:
using (UnitOfWorkManager.Current.DisableFilter(AbpDataFilters.SoftDelete))
{
await AddReportChilds(input, report, false);
await _reportRepository.UpdateAsync(report);
}
It's not working.
Hi,
I'm using setup like mentioned in earlier discussion:
(RE: ACCESSING ZERO APPLICATION LAYER FROM EXTERNAL CLASSLIB #5732 We have a Console Application to demonstrate it: <a class="postlink" href="https://github.com/aspnetzero/aspnet-ze">https://github.com/aspnetzero/aspnet-ze</a> ... ConsoleApp)
When accessing the logger (setup via: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Logging">http://www.aspnetboilerplate.com/Pages/ ... ts/Logging</a>) I get error below: "Could not find a public constructor for type Abp.Authorization.NullPermissionChecker"
detailed error:
Castle.Windsor Warning: 0 : Exception when resolving optional dependency Dependency 'PermissionChecker' type 'Abp.Authorization.IPermissionChecker' on component Intertek.BI.Reporting.Reports.ReportAppService., Castle.MicroKernel.ComponentActivator.ComponentActivatorException: Could not find a public constructor for type Abp.Authorization.NullPermissionChecker.
Windsor by default cannot instantiate types that don't expose public constructors.
To expose the type as a service add public constructor, or use custom component activator.
at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.FastCreateInstance(Type implType, Object[] arguments, ConstructorCandidate constructor)
at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType)
at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments)
at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context)
at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)
at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden)
at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally)
at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy)
at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)
at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)
at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context)
at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveFromKernelByType(CreationContext context, ComponentModel model, DependencyModel dependency)
at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveFromKernel(CreationContext context, ComponentModel model, DependencyModel dependency)
at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveCore(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency)
at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency)
at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.ObtainPropertyValue(CreationContext context, PropertySet property, IDependencyResolver resolver)
Castle.Windsor Warning: 0 : Exception when resolving optional dependency Dependency 'PermissionChecker' type 'Abp.Authorization.IPermissionChecker' on component Intertek.BI.Reporting.Reports.ReportAppService., Castle.MicroKernel.ComponentActivator.ComponentActivatorException: Could not find a public constructor for type Abp.Authorization.NullPermissionChecker.
Hi,
What's the most efficient way to change auditlog entity with some extra fields? Tried to add a partial class but the initial class is not partial.
Should I extend it?
Thanks again,
Hi,
I have an entity called Job. It has property (child object) Report (many to one). Each Job has only one report.
While saving the job through a standard ZERO setup (application service with all the standard setup), it's not possible to only save the Id of the report entity while saving only a job. At current, at the moment of update, Job has a populated property Report indeed. When updating it is going through the automated validation of DBContext etc. etc. When there are child properties within the report object (which aren't loaded ofcourse) then the save of the Job entity will fail because of the Report entity! But I don't want to save Report! I want to save Job with only the Report ID (the reference)..
How can I force to only store Job with report Id/reference and not going to store Report entity as well?!
This is partly a EF question but since the DBContext is hidden in the standard JobRepository it's caused by zero setup.
<code> public async Task CreateOrUpdateJob(CreateOrUpdateJobInput input) {
if (input.Job.Id > 0)
{
//existing Job
var Job = await _JobRepository.GetAsync(input.Job.Id);
input.Job.MapTo(Job);
await _JobRepository.UpdateAsync(Job);
}
else
{
//new Job
await CreateJobAsync(input);
}
}
</code>
Hi,
Used the Console App (Acm.PhoneBook) as example to setup access from console classlib to zero implementation (application layer etc.)
Created all the proper instances and bootstrapper. Initializing is running well but after calling: var eventProcessor = bootstrapper.IocManager.Resolve<ReportAppService>(); I get this error:
Can't create component 'Intertek.BI.Reporting.Reports.ReportAppService' as it has dependencies to be satisfied.
'Intertek.BI.Reporting.Reports.ReportAppService' is waiting for the following dependencies:
It' seems that DI is not working since registration was not done properly.