Problem with upgrading 18.3 to 18.4+

I have a blazor server application running ok on Syncfusion Blazor 18.3.0.53.  When I try to update the NuGet package to anything 18.4.0+  the application crashes with an error message of:  

Uncaught (in promise) Error: Cannot send data if the connection is not in the 'Connected' State.

Any help?


Thanks,

Costas

1 Reply 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team April 25, 2021 01:47 PM UTC

Hi Costas, 

Greetings from Syncfusion. 

We have provided support to render the Syncfusion components in Blazor native for best user experience. Hence, we request you to kindly include the lodash script in the HEAD element of the ~/Pages/_Host.cshtml page for server side blazor application. In case, if you are using WASM application, include it in the HEAD element of the ~/wwwroot/index.html page. 
   
_Host.cshtml 
<head> 
</head> 
 
We suggest you increase the SignalR maximum message size in Startup.cs file to resolve the connection lost issue.   
 
Startup.cs 
public void ConfigureServices(IServiceCollection services) 
{ 
     services.AddSignalR(e => { 
           e.MaximumReceiveMessageSize = 65536 
     }); 
} 

We have prepared sample in latest nugget package version 19.1.57 with all required changes and attached the sample for your reference. Please check with below documentation link. 


Kindly revert us if you have any concerns. 
 
Regards, 
Durga G 


Marked as answer
Loader.
Up arrow icon