ABP Framework version: v7.0.0
UI type: Blazor Server
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): no
Exception message and stack trace:
[ERR] Unhandled exception in circuit 'xOJ0LHCyhNfGn_bQkboi-K3dVkL2K4jcqtZIBS69K9U'.
System.InvalidOperationException: Cannot provide a value for property 'ContactAppService' on type 'Volo.Chat.Blazor.Server.Components.BlazorServerMessagesToolbarItem'. There is no registered service of type 'Volo.Chat.Users.IContactAppService'.
at Microsoft.AspNetCore.Components.ComponentFactory.<>c__DisplayClass7_0.<CreateInitializer>g__Initialize|1(IServiceProvider serviceProvider, IComponent component)
at Microsoft.AspNetCore.Components.ComponentFactory.PerformPropertyInjection(IServiceProvider serviceProvider, IComponent instance)
at Microsoft.AspNetCore.Components.ComponentFactory.InstantiateComponent(IServiceProvider serviceProvider, Type componentType)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame& frame, Int32 parentComponentId)
at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex)
at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex)
at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex)
at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl)
at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange
1 newTree)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
Steps to reproduce the issue:"
Merhabalar,
abp suite kullanarak blazor server projesi oluşturuyorum.
chat modülünü ekliyorum.
ayarlardan sohbeti etkinleştiriyorum.
bu işlemden sonra uygulama çalıştıktan sonra uygulama hiçbir yere tıklayamıyorum. her yer çalışmaz hale geliyor. Logs/logs.txt dosyasında ki son kayıtları yukarda ekledim.
acaba ne yapmam gerekiyor?
translate : Hello,
I am creating a blazor server project using abp suite.
I am adding the chat module.
I enable chat in settings.
after this process after the application runs, the application cannot click anywhere. everywhere is inoperable. I added the last logs in the logs/logs.txt file above.
what should i do?
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
I am adding the chat module.
I enable chat in settings. but its not working.!
I want to add property with foreign key from another table for "User" with "Object Extension Manager".
user.AddOrUpdateProperty<Guid?>("EgitimKonuGrupId", property => { property.UI.Lookup.Url = "/api/departments"; property.UI.Lookup.DisplayPropertyName = "ad"; });
controller:
[Route("api/departments")] public class DepartmentController : AbpController { [HttpGet] public async Task<ListResultDto<EgitimKonuGrupDto>> GetAsync() { return new ListResultDto<EgitimKonuGrupDto>( new[] { new EgitimKonuGrupDto { Id = Guid.Parse("EEB064A5-F160-8A02-ADC2-3A0A1B5D1230"), Ad = "Human Resources" }, new EgitimKonuGrupDto { Id = Guid.Parse("41312C2A-1169-BBBF-256A-3A0A1B5D2A09"), Ad= "Production" } } ); } }
In the user edit screen, I select from the drop-down list and save. correctly saves to the database. but when I open it for editing again, the data I selected does not come as selected.
I had this situation in version 7.0. I updated to version 7.1. and the same situation continues. I am using blazor server as architecture. There is no problem in mvc architecture. the problem happens when in blazor architecture.
Hello, I created a blazor server project using abp suite. To start with, I created only one entity. When I add, a log record is created, but when I update, no log record is created. Do I need to make any adjustments?
Yes, I have tried everything described here. When I update using swagger, the log is created, but when I do it from the blazor interface, it does not.
I have a page where products are managed. I need to add a picture of the product. I want to use the File management module on the product edit page. I want to select the image of the product through the file management module, is this possible?
I developed a project with Blazor Tiered version. After a user logs in to the system, I want to terminate the first session when the same user logs in from another browser. how can I do that.
Thank you for your interest. I tried the codes in this example. But I guess it didn't work because my project was layered. AuthServer project won't log out
app.Use(async (httpContext, func) =>
{
var currentUser = httpContext.RequestServices.GetRequiredService<ICurrentUser>();
if (currentUser.IsAuthenticated)
{
var claimToken = currentUser.GetConcurrentLoginToken();
var userManager = httpContext.RequestServices.GetRequiredService<IdentityUserManager>();
var user = await userManager.FindByIdAsync(currentUser.Id.ToString());
if (claimToken != user.GetProperty(ConcurrentLoginConsts.ConcurrentLoginToken).ToString())
{
//Cookies
if (httpContext.User.Identity != null && httpContext.User.Identity.AuthenticationType == "Identity.Application")
{
await httpContext.RequestServices.GetRequiredService<AbpSignInManager>().SignOutAsync();
await httpContext.ChallengeAsync("Identity.Application");
}
//JWT
if (httpContext.User.Identity != null && httpContext.User.Identity.AuthenticationType == "AuthenticationTypes.Federation")
{
await httpContext.ChallengeAsync(JwtBearerDefaults.AuthenticationScheme);
}
//Other
return;
}
}
await func();
});
//JWT if (httpContext.User.Identity != null && httpContext.User.Identity.AuthenticationType == "AuthenticationTypes.Federation") { await httpContext.ChallengeAsync(JwtBearerDefaults.AuthenticationScheme); }
It falls under the "AuthenticationTypes.Federation" condition but It is not covered by the "Identity.Application" condition. so it doesn't log out