Activities of "levees"

Hi,

Please make sure that the parameter names of StudentAppService and IStudentAppService are the same

it's working, thank you! 我再学习学习这是为什么。

HI,

I will check it

期待回复。

I don't think share data table is good idea Is it possible to use Distributed Event Bus finish it ?

Options( the options pattern ) and Setting(Configuration system) are both derived from .net core (extensions) and more powerful

Settings providers read configuration data from key-value pairs using a variety of configuration sources

Options uses classes to provide strongly typed access to groups of related settings. is used to configure a group of settings used by the framework services.

you may define Settings, or derives something from AbpDynamicOptionsManager

follow the documents: https://docs.abp.io/en/abp/latest/Settings https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-6.0

https://docs.abp.io/en/abp/latest/Options https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-6.0

Abp is no different from normal asp.net core if you added app.UseStaticFiles(); in OnApplicationInitialization method in {WebApp}Module you may check the documents https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-6.0

  • ABP Framework version: v5.1.4
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
global.js?_v=637839874300733999:10 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Unsupported Media Type
Volo.Abp.Http.Client.AbpRemoteCallException: Unsupported Media Type
  • Steps to reproduce the issue:" i create two service, and identical with each other.
public interface ITempStuService : IApplicationService
{
    Task<StudentDto> CreateAsync(StudentDto input);
}
public interface IStudentAppService  : IApplicationService
{
    Task<StudentDto> CreateAsync(StudentDto getListInput);
}

but in the Blazor client App, call them, I get different results,one of them give wh 415 error. for reproduce i have simplify my code to minimal, and push to github https://github.com/mlwxxx/temp02

on blazor app home page, check the first button and got a Unsupported Media Type error.
but, the second button is work well.. I was so confused that I didn't know what i did wrong。 can you help me ?

hi

Are you enable WebSockets of IIS?

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/websockets?view=aspnetcore-5.0#iisiis-express-support

😂 It really is!

Finally got it working

非常感谢。。。balabala.....

I created app with CLI command is abp new Moo.Portal --ui blazor-server --mobile none Did not any modification except connetctionstring and domain-name And build it dotnet publish -c Releases -o ../../publish -r win-x64 --no-self-contained Whether I execute the published .exe file or debug with visulal studio, It work well. once deploy on IIS, the error appeared after sigin the dashboard.


  • ABP Framework version: v4.4.3
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
2021-10-20 02:08:35.144 +08:00 [WRN] Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
Volo.Abp.Authorization.AbpAuthorizationException: Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
   at Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.CheckAsync(IAuthorizationService authorizationService, AuthorizationPolicy policy)
   at Volo.Abp.Authorization.MethodInvocationAuthorizationService.CheckAsync(MethodInvocationAuthorizationContext context)
   at Volo.Abp.Authorization.AuthorizationInterceptor.AuthorizeAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)
   at Volo.Abp.Auditing.AuditingInterceptor.ProcessWithNewAuditingScopeAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, ICurrentUser currentUser, IAuditingManager auditingManager, IAuditingHelper auditingHelper)
   at Volo.Abp.Auditing.AuditingInterceptor.ProcessWithNewAuditingScopeAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, ICurrentUser currentUser, IAuditingManager auditingManager, IAuditingHelper auditingHelper)
   at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Volo.Abp.BlazoriseUI.AbpCrudPageBase`10.GetEntitiesAsync()
2021-10-20 02:08:35.144 +08:00 [WRN] Code:Volo.Authorization:010001

And I have reproduce the error in a two-minute video https://youtu.be/5WXO0t6ukuM
Showing 1 to 8 of 8 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11