CodeGenerator: Grid: Object reference not set to an instance of an object

see attached video showing the error when selecting a  Model Class.  



Attachment: Syncfusion_error_in_grid_Code_Gen_2603d4e2.rar

1 Reply

VN Vignesh Natarajan Syncfusion Team December 22, 2021 08:55 AM UTC

Hi Miles,  
 
Thanks for contacting Syncfusion support.  
 
Query: “Grid: Object reference not set to an instance of an object” 
 
We have analyzed the reported issue at our end by generating the Blazor DataGrid component code using Syncfusion Code Generator. We are able to reproduce the reported issue when trying to selecting model class in Code Generator. This issue has occurred due to build failure at our end. Once we clear the build failures and rebuild the application with success, we are able to resolve the reported issue.  
 
So kindly we request to clear the build failures if you have any and try to select the model class. From your video demo, we found that you have used Visual Studio 2022 Preview version to generate the code which uses DOTNET 6.0 version. But Syncfusion Code Generator installed version 19.3.0.53 (older version). So we request you to upgrade the Syncfusion Code Generator or uninstall and reinstall the latest version of Syncfusion Code Generator (19.4.0.53).  
 
Refer the below screenshot for your reference 
 
 
 
If you are still facing the reported issue after executing the above steps, kindly get back to us with more details about the issue you are facing along with the details about the VwCustomer class. It will be very helpful for us to validate the reported query at out end and provide solution as early as possible.  
 
Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon