Activities of "mc86"

If you're creating a bug/problem report, please include followings:

ABP Framework version: v7.0

  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi I used Dynamic api in my microservice project before v7.0
by follow the doc and it worked fine, https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice#updating-gateways which is outdated

but now I got errors

Unhandled exception rendering component: Could not found remote action for method: System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[CP.OaService.SuperDocTypes.SuperDocTypeDto]] GetListAsync(CP.OaService.SuperDocTypes.GetSuperDocTypesInput) on the URL: https://localhost:44325
[blazor_9a492ff9-f]: Volo.Abp.AbpException: Could not found remote action for method: System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[CP.OaService.SuperDocTypes.SuperDocTypeDto]] GetListAsync(CP.OaService.SuperDocTypes.GetSuperDocTypesInput) on the URL: https://localhost:44325
[blazor_9a492ff9-f]: at Volo.Abp.Http.Client.DynamicProxying.ApiDescriptionFinder.FindActionAsync(HttpClient client, String baseUrl, Type serviceType, MethodInfo method)
[blazor_9a492ff9-f]: at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.GetActionApiDescriptionModel(IAbpMethodInvocation invocation)
[blazor_9a492ff9-f]: at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.InterceptAsync(IAbpMethodInvocation invocation)
[blazor_9a492ff9-f]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[blazor_9a492ff9-f]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[blazor_9a492ff9-f]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[blazor_9a492ff9-f]: at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[blazor_9a492ff9-f]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[blazor_9a492ff9-f]: at CP.OaService.Blazor.Pages.OaService.SuperDoc.SuperDocTypes.GetSuperDocTypesAsync() in D:\CP\services\oa\src\CP.OaService.Blazor\Pages\OaService\SuperDoc\SuperDocTypes.razor.cs:line 94
[blazor_9a492ff9-f]: at CP.OaService.Blazor.Pages.OaService.SuperDoc.SuperDocTypes.OnDataGridReadAsync(DataGridReadDataEventArgs`1 e) in D:\CP\services\oa\src\CP.OaService.Blazor\Pages\OaService\SuperDoc\SuperDocTypes.razor.cs:line 113

in this post,it says that ms project don't support dynamic proxies. https://support.abp.io/QA/Questions/3920/Commercial-Micro-Service-Project---Error-when-using-dynamicaly-proxied-clients-over-gateways#answer-3c521983-6726-7c4c-4cc2-3a071af7cf96

so i'd like to know ,do or do not the ms support dynamic proxies? if it supports , how to fix my problem?

  • ABP Framework version: v7.0.0
  • UI type: Blazor
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

HI

got many errores like this when blazor project started then get error like this atfer call a remote service System.InvalidOperationException: Cannot provide a value for property 'MinionsAppService' on type 'CP.TechGenieService.Blazor.Pages.TechGenieService.Minions'. There is no registered service of type 'CP.TechGenieService.Minions.IMinionsAppService'. have been gerated ClientProxies in the **.HttpApi.Client and added the Depends in blazor module

Question
  • ABP Framework version: v6.0.2
  • UI type: Blazor
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

2022-12-23 08:43:52.379 +08:00 [INF] Request finished HTTP/2 GET https://oa.aysdlrmyy.com:44314/Error?httpStatusCode=404 - - - 404 - text/html;+charset=utf-8 20.2484ms
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: SettingManagement.Emailing
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: AbpIdentity.SettingManagement
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: AbpAccount.SettingManagement
  • ABP Framework version: v6.0
  • UI type: Blazor
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi

I followed the doc and migrated the idserver to the OpenIddict. in idserver i use "AbpClaimsServiceOptions" to add claims what do i need to do in OpenIddict

  • UI type: Blazor-server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

i flowed the doc and added the chat module in a **microservice ** . add the volo.chat to the {projectname}.blazor then added the

  app.Use(async (httpContext, next) =>
            {
                var accessToken = httpContext.Request.Query["access_token"];

                var path = httpContext.Request.Path;
                if (!string.IsNullOrEmpty(accessToken) &&
                    (path.StartsWithSegments("/signalr-hubs/chat")))
                {
                    httpContext.Request.Headers["Authorization"] = "Bearer " + accessToken;
                }

                await next();
            });

to the blazor server app. but now there is an error

[blazor_e61ab55f-b]: [11:10:27 INF] Request finished HTTP/1.1 POST https://localhost:44314/signalr-hubs/chat/negotiate?negotiateVersion=1 - 0 - 400 0 - 0.7379ms
[blazor_e61ab55f-b]: [11:10:27 WRN] Unhandled exception rendering component: Response status code does not indicate success: 400 (Bad Request).
[blazor_e61ab55f-b]: System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
[blazor_e61ab55f-b]: at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync(Uri url, HttpClient httpClient, ILogger logger, CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.GetNegotiationResponseAsync(Uri uri, CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport(TransferFormat transferFormat, CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore(TransferFormat transferFormat, CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at System.Threading.Tasks.ForceAsyncAwaiter.GetResult()
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync(TransferFormat transferFormat, CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner(CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at System.Threading.Tasks.ForceAsyncAwaiter.GetResult()
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(CancellationToken cancellationToken)
[blazor_e61ab55f-b]: at Volo.Chat.Blazor.Components.MessagesToolbarItem.OnInitializedAsync()
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
[blazor_e61ab55f-b]: at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
[blazor_e61ab55f-b]: [11:10:27 ERR] Unhandled exception in circuit 'AbGz5Sf6tRmRB9LTKUMsV1s_0qNpKbp2iTBg41nPdFE'.
  • ABP Framework version: v6.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • [blazor_de264e9c-4]: [08:47:51 FTL] CP.Blazor terminated unexpectedly! [blazor_de264e9c-4]: Volo.Abp.AbpInitializationException: An error occurred during ConfigureServices phase of the module Volo.Abp.AspNetCore.Components.WebAssembly.AbpAspNetCoreComponentsWebAssemblyModule, Volo.Abp.AspNetCore.Components.WebAssembly, Version=6.0.1.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. [blazor_de264e9c-4]: ---> System.InvalidOperationException: Could not find singleton service: Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder, Microsoft.AspNetCore.Components.WebAssembly, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 [blazor_de264e9c-4]: at Microsoft.Extensions.DependencyInjection.ServiceCollectionCommonExtensions.GetSingletonInstance[T](IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.Extensions.DependencyInjection.AbpWebAssemblyServiceCollectionExtensions.GetHostBuilder(IServiceCollection services) [blazor_de264e9c-4]: at Volo.Abp.AspNetCore.Components.WebAssembly.AbpAspNetCoreComponentsWebAssemblyModule.ConfigureServices(ServiceConfigurationContext context) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationBase.ConfigureServices() [blazor_de264e9c-4]: --- End of inner exception stack trace --- [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationBase.ConfigureServices() [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at CP.Blazor.Startup.ConfigureServices(IServiceCollection services) in D:\CP\apps\blazor-server\src\CP.Blazor\Startup.cs:line 11 [blazor_de264e9c-4]: at System.RuntimeMethodHandle.InvokeMethod(Object target, Span1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) [blazor_de264e9c-4]: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider() [blazor_de264e9c-4]: at Microsoft.Extensions.Hosting.HostBuilder.Build() [blazor_de264e9c-4]: at CP.Blazor.Program.Main(String[] args) in D:\CP\apps\blazor-server\src\CP.Blazor\Program.cs:line 21
  • Steps to reproduce the issue:"
  • ABP Framework version: v5.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

the result in swagger is like this. { "data": [ { "report": { "reportName": "54321", "fileName": "报表", "dtoName": "CP.ReportService.Reports.ReportWithNavigationPropertiesDto", "iAppServiceName": "CP.ReportService.Reports.IReportsAppService", "getMethodName": "GetDxReportsAsync", "pageName": "CP.ReportService.Blazor.Pages.ReportService.Reports", "moduleName": "CP.ReportService.Blazor.ReportServiceBlazorModule", "creatorOuId": "00000000-0000-0000-0000-000000000000", "moduleId": "6e9df9da-353f-f99a-1496-3a0319326f0d", "isDeleted": false, "deleterId": null, "deletionTime": null, "lastModificationTime": "2022-04-27T08:51:30.9189059", "lastModifierId": "011a204f-b914-e9c7-eaba-3a037a9d79ec", "creationTime": "2022-04-22T10:44:03.704465", "creatorId": "760fbf89-c292-8265-b846-3a01f3e5f77c", "extraProperties": {}, "concurrencyStamp": "4940f6a8b1844df6bb155b6e0ed7b007", "id": "b550a7c7-679d-35ed-f918-3a0361548bcc" }, "module": { "moduleName": "OA模块", "creatorOuId": "d7ae3bfe-c42e-0582-878f-3a0279b85e20", "isDeleted": false, "deleterId": null, "deletionTime": null, "lastModificationTime": null, "lastModifierId": null, "creationTime": "2022-04-08T10:34:08.6577346", "creatorId": "760fbf89-c292-8265-b846-3a01f3e5f77c", "extraProperties": {}, "concurrencyStamp": "7667d696451a478c8884a7c531d30209", "id": "6e9df9da-353f-f99a-1496-3a0319326f0d" } } ], "totalCount": -1, "groupCount": -1, "summary": null }

after deserialized it liked this.

ValueKind = Object : "{"report":{"reportName":"54321","fileName":"报表","dtoName":"CP.ReportService.Reports.ReportWithNavigationPropertiesDto","iAppServiceName":"CP.ReportService.Reports.IReportsAppService","getMethodName":"GetDxReportsAsync","pageName":"CP.ReportService.Blazor.Pages.ReportService.Reports","moduleName":"CP.ReportService.Blazor.ReportServiceBlazorModule","creatorOuId":"00000000-0000-0000-0000-000000000000","moduleId":"6e9df9da-353f-f99a-1496-3a0319326f0d","isDeleted":false,"deleterId":null,"deletionTime":null,"lastModificationTime":"2022-04-27T08:51:30.9189059","lastModifierId":"011a204f-b914-e9c7-eaba-3a037a9d79ec","creationTime":"2022-04-22T10:44:03.704465","creatorId":"760fbf89-c292-8265-b846-3a01f3e5f77c","extraProperties":{},"concurrencyStamp":"4940f6a8b1844df6bb155b6e0ed7b007","id":"b550a7c7-679d-35ed-f918-3a0361548bcc"},"module":{"moduleName":"OA模块","creatorOuId":"d7ae3bfe-c42e-0582-878f-3a0279b85e20","isDeleted":false,"deleterId":null,"deletionTime":null,"lastModificationTime":null,"lastModifierId":null,"creationTime":"2022-04-08T10:34:08.6577346","creatorId":"760fbf89-c292-8265-b846-3a01f3e5f77c","extraProperties":{},"concurrencyStamp":"7667d696451a478c8884a7c531d30209","id":"6e9df9da-353f-f99a-1496-3a0319326f0d"}}"

i don't need the "ValueKind = Object : {}"" how can i fix this.

https://support.abp.io/QA/Questions/1433/How-to-add-extra-information-to-CurrentUserCheck 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:

  • ABP Framework version: v5.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

https://docs.abp.io/en/abp/latest/Authorization#advanced-topics https://support.abp.io/QA/Questions/1433/How-to-add-extra-information-to-CurrentUser Hi I want to get currentuser's OU ID, I followed the doc add codes below in my service domain project. then use this.CurrentUser.FindClaim("OrganizationId"); to get OrganizationId in my blazor project. but it always is null. what do i miss?

public class OrgClaimsPrincipalContributor : IAbpClaimsPrincipalContributor, ITransientDependency
    {
        public async Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
        {
            //var identity = context.ClaimsPrincipal.Identities.FirstOrDefault();
            //var userId = identity?.FindUserId();
            //if (userId.HasValue)
            //{
            //    //var userService = context.ServiceProvider.GetRequiredService<IdentityUserAppService>(); //Your custom service
            //    //var OrgList = await userService.GetOrganizationUnitsAsync(userId.Value);
            //    //var Org = OrgList.ToList().FirstOrDefault();
            //    //if (Org != null)
            //    //{
            //    //    var Claim = new Claim("OrganizationId", "123");
            //    //    identity.AddClaim(Claim);
            //    //}

            //    var Claim = new Claim("OrganizationId", "123");
            //    identity.AddClaim(Claim);
            //}

            var identity = context.ClaimsPrincipal.Identities.FirstOrDefault();
            identity.AddClaim(new Claim("OrganizationId", "OrganizationValue"));
        }
    }
var orgid = this.CurrentUser.FindClaim("OrganizationId");
  • ABP Framework version: v5.1.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:" Hi In microservice-template can't use navigation properties cross services that are very inconvenient。 So any solutions?
  • ABP Framework version: v5.1.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

HI somehow I got this error. now I can't log in.

Showing 1 to 10 of 13 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13