Activities of "zhongfang"

I never heard such configuration. I need to store a valid username with password in config file?

[02:56:06 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.

as you see, I have default remote service.

What does the warn mean?

There is an warning message whilt starting the web host.

[02:56:00 INF] Initialized all ABP modules.
[02:56:00 INF] Initializing UI Database
[02:56:00 INF] Now listening on: http://[::]:80
[02:56:00 INF] Application started. Press Ctrl+C to shut down.
[02:56:00 INF] Hosting environment: ba****o_com
[02:56:00 INF] Content root path: /app/
[02:56:06 INF] Request starting HTTP/1.0 GET http://abc.ba****o.com/health - -
[02:56:06 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[02:56:06 INF] Start processing HTTP request GET https://frontapi.bazishuo.com/api/abp/application-configuration?api-version=1.0
[02:56:06 INF] Sending HTTP request GET https://frontapi.ba****o.com/api/abp/application-configuration?api-version=1.0
[02:56:07 INF] Received HTTP response headers after 728.2914ms - 200
[02:56:07 INF] End processing HTTP request after 742.2128ms - 200
[02:56:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[02:56:08 INF] Start processing HTTP request GET https://frontapi.ba****o.com/api/abp/application-configuration?api-version=1.0
[02:56:08 INF] Sending HTTP request GET https://frontapi.ba****o.com/api/abp/application-configuration?api-version=1.0
[02:56:09 INF] Request starting HTTP/1.0 POST http://app.ba****o.com/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
[02:56:09 INF] Received HTTP response headers after 787.906ms - 200

appsettings.ba****o_com

  "RemoteServices": {
    "Default": {
      "BaseUrl": "https://frontapi.ba****o.com/"
    },
    "Brain": {
      "BaseUrl": "https://api.another.tech/"
    },
    "AbpAccountPublic": {
      "BaseUrl": "https://id.ba****o.com/"
    }
  },
  "AuthServer": {
    "Authority": "https://id.ba****o.com",
    "RequireHttpsMetadata": "false",
    "ClientId": "****",
    "ClientSecret": "****"
  },

Ok,Ok。 If ABP can check above error stage, and mentioned us. It will save time for us.

I have found out the problem. Is that out parameter not supported in HttpController?

[HttpGet]
    [Route("try-open-id")]
    public bool TryGetOpenId(Guid? userId, out string openId)
    {
        return this._userWeChatIdAppService.TryGetOpenId(userId, out openId);
    }
  • ABP Framework version: v5.1.3
  • UI type: Blazor Server Side
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
[00:33:01 INF] Request starting HTTP/1.0 GET http://api.***.tech/api/abp/api-definition - -
[00:33:01 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApiExploring.AbpApiDefinitionController.Get (Volo.Abp.AspNetCore.Mvc)'
[00:33:01 INF] Route matched with {area = "abp", action = "Get", controller = "AbpApiDefinition", page = ""}. Executing controller action with signature Volo.Abp.Http.Modeling.ApplicationApiDescriptionModel Get(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModelRequestDto) on controller Volo.Abp.AspNetCore.Mvc.ApiExploring.AbpApiDefinitionController (Volo.Abp.AspNetCore.Mvc).
[00:33:01 ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!",
  "details": null,
  "data": {},
  "validationErrors": null
}

[00:33:01 ERR] Given type (System.String&, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e) should be instance of System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e  (Parameter 'item')
System.ArgumentException: Given type (System.String&, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e) should be instance of System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e  (Parameter 'item')
   at Volo.Abp.Collections.TypeList`1.CheckType(Type item)
   at Volo.Abp.Collections.TypeList`1.Add(Type item)
   at Volo.Abp.Http.Modeling.ApiTypeNameHelper.GetSimpleTypeName(Type type, ITypeList duplicateTypes)
   at Volo.Abp.Http.Modeling.MethodParameterApiDescriptionModel.Create(ParameterInfo parameterInfo)
   at System.Linq.Enumerable.SelectArrayIterator`2.ToList()
   at Volo.Abp.Http.Modeling.ActionApiDescriptionModel.Create(String uniqueName, MethodInfo method, String url, String httpMethod, IList`1 supportedVersions, Nullable`1 allowAnonymous, String implementFrom)
   at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.AddApiDescriptionToModel(ApiDescription apiDescription, ApplicationApiDescriptionModel applicationModel, ApplicationApiDescriptionModelRequestDto input)
   at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.CreateApiModel(ApplicationApiDescriptionModelRequestDto input)
   at lambda_method10858(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
[00:33:01 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
[00:33:01 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApiExploring.AbpApiDefinitionController.Get (Volo.Abp.AspNetCore.Mvc) in 128.478ms
[00:33:01 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApiExploring.AbpApiDefinitionController.Get (Volo.Abp.AspNetCore.Mvc)'
  • Steps to reproduce the issue:"
  • I deploy the HttpApi.Host on server.
  • I can open the page https://api.****.tech/swagger/index.html.
  • It run well for many days.
  • Now, after a daily deploy with some module changed, it will throw exception while Blazor project access http://api.***.tech/api/abp/api-definition

private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration) { context.Services.AddAuthentication(options => { options.DefaultScheme = "Cookies"; options.DefaultChallengeScheme = "oidc"; }) .AddCookie("Cookies", options => { options.ExpireTimeSpan = TimeSpan.FromDays(365); }) .AddAbpOpenIdConnect("oidc", options => { options.Authority = configuration["AuthServer:Authority"]; options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]);; options.ResponseType = OpenIdConnectResponseType.CodeIdToken; options.ClientId = configuration["AuthServer:ClientId"]; options.ClientSecret = configuration["AuthServer:ClientSecret"]; options.SaveTokens = true; options.GetClaimsFromUserInfoEndpoint = true; options.Scope.Add("role"); options.Scope.Add("email"); options.Scope.Add("phone"); options.Scope.Add("Brain"); }); }

A TIRED blazor server side application。 I think it is caused by some configuration such as CORS to call API?

<strong>@L["Roles"]</strong>: @CurrentUser.Roles.JoinAsString(", ")

  • ABP Framework version: v5.1.3
  • UI type: Blazor Server Side
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: Nothing
  • Steps to reproduce the issue:"
  • I created tired application with ABP Suite 5.1.3
  • In razor pages of Blazor project, @CurrentUser.Roles.JoinAsString(", ") get null output
Showing 141 to 150 of 185 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 10, 2025, 10:45
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.