HTML Editor can't save large text

Large text (more than 5000 words or more) can't save through HTML editor, I'm getting below error. please have a look error below
[2021-11-03T09:20:12.523Z] Error: Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error.'.

<RadzenHtmlEditor Style="height: 250px; margin-bottom: 1rem;"
                          Change="@(OnChange)" />

 private async Task OnChange(string selectedValue) // selectedValue coming null for large text but for small text like 2000 words is fine.
            try {
                if (string.IsNullOrEmpty(PropertyName) || string.IsNullOrEmpty(selectedValue))
// Do stuff
            catch (Exception e)

How I can resolve this ? Thanks !

I have increased the size for Singal R and that fixed the issue now. or have you any good solutions ?

services.AddSignalR(e => {
                e.MaximumReceiveMessageSize = 102400000;

This is the only solution in my opinion.

1 Like

Indeed what @enchev said is the only solution. Blazor server-side uses SignalR to communicate with the server and has a default maximum message size.