Exception when clicking inside the diagram area

I have a issue in my program using the diagram.

If I click a few times in the diagram area that is not on a node or a connection a exception is thrown in Chrome and  "Attempting to reconnect to server" is shown.
See attached screendump.
I have a few example projects from you and none of them shows the issue, and I have been unable to reproduce it outside my main program.

No event is called and the error is not shown if I click on a node or a connection, only when clicking a few times in the diagram area.

I use server side Blazor with .Net 5 and version "19.1.0.66" of your controls

Attachment: exception_93ded5bd.zip

3 Replies 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team June 14, 2021 11:25 AM UTC

Hi Torben, 
 
On our further analysis on the shared sample, we suspect the reported issue is because of the  server side configuration.  
  
By default, in the blazor,  If the data loaded from client to server is more than 32KB means then server reconnect issue occurs in the blazor. Please find the below github link for more information about issue 
  
https://github.com/dotnet/aspnetcore/issues/11184  
  

To overcome this increase the message size in the startup.cs file. In the startup.cs file in the ConfigureServices method add the below service to increase the message size  
  

code snippet:
 
 

public void ConfigureServices(IServiceCollection services)  
        {  
            services.AddRazorPages();  
            services.AddServerSideBlazor();  
            services.AddSyncfusionBlazor();  
            services.AddSingleton();  
            services.AddSingleton();  
            services.AddServerSideBlazor().AddHubOptions(o =>  
            {  
                o.MaximumReceiveMessageSize = 102400000;  
            });
  
        }  
  
  

Regards, 
 
Gowtham 


Marked as answer

TL Torben Laursen June 15, 2021 03:54 PM UTC

Thanks, that solved the issue


GG Gowtham Gunashekar Syncfusion Team June 16, 2021 07:27 AM UTC

Hi Torben, 
 
Thanks for your update. Please let us know whether you need any further assistance on this. 
 
Regards  
Gowtham 


Loader.
Up arrow icon