Uncought nullreference exception after update to 18.4.0.41 version

Hi!

After updating to 18.4.0.41 version I get a NullReferenceException when trying to render a chart. If I revert Syncfusion nuget version to 18.4.0.35 the charts appear without any error.

I created a demo project to reproduce the issue at: https://github.com/kristof12345/ChartsDemo

Thank you for your help!

Attachment: Archívum_eb7cba30.zip

5 Replies 1 reply marked as answer

KR Kristof February 11, 2021 01:51 PM UTC

The error seems to be already in v18.4.0.39 too.

More details: Server side Blazor, .Net5 and standalone Syncfusion.Blazor.Charts package.



SM Srihari Muthukaruppan Syncfusion Team February 12, 2021 04:21 AM UTC

Hi Kristóf, 
 
We have analyzed your query. From that, we suggest you add the below code snippet in the startup.cs page to overcome the reported scenario in the latest version 18.4.41. We have also attached the sample for your reference. Please find the sample and screenshot below. 
 
 
Code Snippet: 
Startup.cs: 
 
// add your additional code here 
public void ConfigureServices(IServiceCollection services) 
        { 
            services.AddSignalR(e => { 
                e.MaximumReceiveMessageSize = 102400000; 
            }); 
            services.AddRazorPages(); 
            services.AddServerSideBlazor(); 
            services.AddSyncfusionBlazor(); 
            services.AddSingleton<WeatherForecastService>(); 
        }  
// add your additional code here 
 
Screenshot: 
 
 
If you still face this issue. kindly revert us with the following information which will be more helpful for further analysis and provide you the solution sooner.  
 
  1. Try to reproduce the reported scenario in the provided sample 
  2. Share the details if you have done any other customization
 
Regards, 
Srihari M  


Marked as answer

KR Kristof February 15, 2021 03:30 PM UTC

Thank you for the solution! Is it the expected final solution or it might be fixed in the future?


SM Srihari Muthukaruppan Syncfusion Team February 16, 2021 07:05 AM UTC

Hi Kristóf, 
 
We have already considered this scenario as an improvement and this will be included in our volume 1 2021 release which is expected to be rolled out by the end of March 2021. Until then we suggest you to use the provided solution to overcome the reported scenario. 
 
Regards, 
Srihari M 



SM Srihari Muthukaruppan Syncfusion Team April 1, 2021 02:23 PM UTC

Hi Kristóf, 
 
Sorry for the inconvenience. 
 
Since on chart initial loading, we gather text measure information for rendering purposes. And its size exceeds the default SignalR buffer size 32 KB, the server will be disconnected. So you need to add the following service to increase the buffer size to 64 KB over the SignalR connection. And this is mandatory to render the chart in latest version 19.1.54. 
 
Code Snippet: 
using Syncfusion.Blazor; 
namespace BlazorApplication 
{ 
public class Startup 
{ 
    .... 
    .... 
    public void ConfigureServices(IServiceCollection services) 
    { 
        .... 
        .... 
        services.AddSyncfusionBlazor(); 
        services.AddSignalR(e => { 
          e.MaximumReceiveMessageSize = 65536; 
        }); 
    } 
} 
} 
 
 
Note: For using Azure SignalR to host your blazor server application use below configuration 
 
using Syncfusion.Blazor; 
namespace BlazorApplication 
{ 
public class Startup 
{ 
    .... 
    .... 
    public void ConfigureServices(IServiceCollection services) 
    { 
        .... 
        .... 
        services.AddSyncfusionBlazor(); 
        services.AddSignalR(e => {e.MaximumReceiveMessageSize = 65536;}).AddAzureSignalR(); 
    } 
} 
} 
 
 
We have also included the details in our documentation. Please find the link below. 
 
 
Let us know if you have any concerns. 
 
Regards, 
Srihari M 


Loader.
Up arrow icon