Hi,
It seems that the template for Blazor Server doesn't put the Authority app setting in the AuthServer sections of the appsettings.json.
I think you need to modify the generated code by ABP Suite.
Tks.
For me, problem solved, I added manually that setting.
tks!!
silly of me.
Hello!
Any news related to this?
Thanks a lot.
Hi,
Thank you for replying.
What about the menu problems?
After login, the menus that have child menu items does not work in Blazor Server. Be it debug or without debug. Be it the default Administration Menu or any other menu that I create with children and conditionally rendered based on user role.
I have to refresh the page in order for the menus to work.
If I go on an incognito page and open the app url from there, it works.
Also, there is one issue with the profile image. If you set a profile picture and then if you refresh any page or navigate, before displaying the page, for a brief second, a HUGE profile picture appears on the screen.
It is very disturbing. If you want I can attach a video of this behaviour.
Tks a lot!
It would be cool to replace the default Blazorise component library used in ABP Blazor solutions, including the generated ABP Suite pages, which is under a license if certain conditions are met, with, for example, Radzen, or any another component library that is completely free and open source.
Hi,
The original error disappeared, but now I have this:
2023-11-22 07:14:32.122 +02:00 [WRN] Unhandled exception rendering component: '<' is an invalid start of a value. LineNumber: 1 | BytePositionInLine: 0. System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 1 | BytePositionInLine: 0. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan
1 bytes)
at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)
at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first)
at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
at System.Text.Json.Utf8JsonReader.Read()
at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory
1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Volo.Abp.BlazoriseUI.Components.ObjectExtending.LookupExtensionProperty
2.GetLookupItemsAsync(String filter)
at Volo.Abp.BlazoriseUI.Components.ObjectExtending.LookupExtensionProperty2.SearchFilterChangedAsync(String filter) at Volo.Abp.BlazoriseUI.Components.ObjectExtending.LookupExtensionProperty
2.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
2023-11-22 07:14:32.129 +02:00 [ERR] Unhandled exception in circuit 'PzKxz14If1PFA-nNOPshZvR2VREDcT6b8hBgLIBgji0'.
System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 1 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan
1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory
1 json, JsonDocumentOptions options)
at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
at Volo.Abp.BlazoriseUI.Components.ObjectExtending.LookupExtensionProperty2.GetLookupItemsAsync(String filter) at Volo.Abp.BlazoriseUI.Components.ObjectExtending.LookupExtensionProperty
2.SearchFilterChangedAsync(String filter)
at Volo.Abp.BlazoriseUI.Components.ObjectExtending.LookupExtensionProperty2.OnAfterRenderAsync(Boolean firstRender) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) 2023-11-22 07:14:32.133 +02:00 [INF] Executed endpoint '/_blazor'
This is because it's returning the login page, but I am logged in and the controller is decorated with the Authorized for Admin role. I wouldn't want to allow anonymous on that endpoint.
PS: Shouldn't the app settings related to RemoteServices:Default:BaseUrl be generated with the Blazor Server template from ABP Suite?
Replied on email with the logs.
Tks.
Done. Sent by email.
Hi,
It's working correctly now but only returns 10 items.
Where can I change the paging? Or to return me all the items from the controller?