This non descriptive error came at surface due to missing third party drivers in my custom abp module.
Solved :D
Thanks anyway
Description: The process was terminated due to an unhandled exception. Exception Info: Castle.MicroKernel.ComponentNotFoundException
already tried solve issues with framework versions, x86/64 but with no success. I'm running ABP 0.7.5/zero 0.7.4
Not found, ok - but what compoment?
Anyone :?:
Hi,
It is fixed. Fixed because of the update to latest version.
Thanks for all hints and tips
Hi,
Did a little test.
public class TestAppService : BIAppServiceBase, ITestAppService
{
private IRepository<ContentGroup> _contentRepository;
public TestAppService(IRepository<ContentGroup> contentRepository
)
{
_contentRepository = contentRepository;
}
public async Task TestIt()
{
//some plain test
//take contentgroup
var contentGroup = _contentRepository.GetAll().FirstOrDefault();
//take user
var user = await UserManager.GetUserByIdAsync(3); //known user ;-)
//add user to group
contentGroup.Users.Add(user);
//update
_contentRepository.Update(contentGroup);
//very simple - this works! What's the difference?
}
}
That worked - what's the difference? Mixing async with non async :roll:
Hi,
Sorry but this was not solved yet :-( It seems at first sight because it's actually working fine in de entity framework seed. From within the application layer, it's not! :shock:
What do you guys need from me to solve this?
by debugging EF I can tell EF is not registering a change after adding a user to an entity group. I tested this with intelli trace and with:
public BIDbContext(string nameOrConnectionString)
: base(nameOrConnectionString)
{
this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
}
As you can see it is adding the reports but no go for the users :!: :
UPDATE [dbo].[ContentGroups]
SET [Purpose] = @0, [DataOwner] = NULL, [SiteId] = @1, [Description] = @2, [IsDeleted] = @3, [DeleterUserId] = NULL, [DeletionTime] = NULL, [LastModificationTime] = @4, [LastModifierUserId] = @5, [CreationTime] = @6, [CreatorUserId] = NULL
WHERE ([Id] = @7)
-- @0: 'First testing of crud operations' (Type = String, Size = 255)
-- @1: '1' (Type = Int32)
-- @2: 'General First ContentGroups 5' (Type = String, Size = 255)
-- @3: 'False' (Type = Boolean)
-- @4: '7/1/2016 2:48:54 PM' (Type = DateTime2)
-- @5: '2' (Type = Int64)
-- @6: '6/20/2016 10:37:33 AM' (Type = DateTime2)
-- @7: '1' (Type = Int32)
-- Executing asynchronously at 7/1/2016 4:48:54 PM +02:00
-- Completed in 1 ms with result: 1
INSERT [dbo].[ReportContentGroups]([Report_Id], [ContentGroup_Id])
VALUES (@0, @1)
-- @0: '3' (Type = Int32)
-- @1: '1' (Type = Int32)
-- Executing asynchronously at 7/1/2016 4:48:54 PM +02:00
-- Completed in 1 ms with result: 1
INSERT [dbo].[ReportContentGroups]([Report_Id], [ContentGroup_Id])
VALUES (@0, @1)
-- @0: '4' (Type = Int32)
-- @1: '1' (Type = Int32)
-- Executing asynchronously at 7/1/2016 4:48:54 PM +02:00
-- Completed in 0 ms with result: 1
Closed connection at 7/1/2016 4:48:54 PM +02:00
Hi,
Resolved this by adding an extra dependency to the application layer module, like so:
/// <summary>
/// Application layer module of the application.
/// </summary>
[DependsOn(
typeof(BICoreModule),
typeof(Reporting.Core.BIReportingCoreModule)
)]
The Reporting.Core.BIReportingCoreModule provides the ReportManager what gives the dep. error. It remains unclear why a rebuild from within the solution did not reveal this dependency need.
There is difference between a ASP.NET build triggered by IIS rather then a normal solution build.
Thanks for reading ;-)
Hi,
ITransientDependency: Yes DomainService: No
It is odd that when running, after an api (re)build this behaviour occurs. It is building and working ok until that rebuild starts (after changing and saving app.js - for instance).
Do you have additional info on how and when this rebuild is triggered? What's the difference between a normal solution build and the web api rebuild when running the app?
Thanks - maybe we can solve it before tomorrow ;-)
Hi,
As matter of fact - it did work (custom errors mode off) but only within fiddler or in browser, not in the logs.
Thanks, with this data I can investigate it further on.
Hi,
No go with custom errors - didn't even try eventlog ;-)
Any other suggestions?
Hi,
Thanks - thats what I was looking for. Obvious that datafilter are there for retrieving data.