FileLoadException: Could not load file or assembly 'System.Text.Json,

Hello!
After updating to version 17.4.0.54.
I'm getting error when launching project:

FileLoadException: Could not load file or assembly 'System.Text.Json, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)

Syncfusion.EJ2.Blazor.Locale.SetLocale(string localeContent)


After hitting refresh, pages starts to load, but grids and lists not showing binded data.


6 Replies

AL Aleksandrs March 9, 2020 02:28 PM UTC

I have this problem starting from V 17.4.0.53
V 17.4.0.51 - working ok.


RN Rahul Narayanasamy Syncfusion Team March 10, 2020 08:53 AM UTC

Hi Aleksandrs,

Greetings from Syncfusion.

Query: FileLoadException: Could not load file or assembly 'System.Text.Json,

The reported issue might occur when .Net Core version is less than the 3.1.2. In our 17.4.0.54 release, we have upgraded our components to .Net Core 3.1.2 version. Please find the release notes regarding the same from below


So kindly upgrade the (.Net Core version) - 3.1.2 to resolve the reported issue.

Regards,
Rahul




AL Aleksandrs March 17, 2020 11:00 AM UTC

Hi!
I'm updated to .Net Core 3.1.2 version and upgraded to 17.4.0.55.
Previous problem fixed, but now I have exception in nested Grid

blazor.server.js:15 [2020-03-17T10:39:22.360Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.EJ2.Blazor.Grids.Internal.PropertyInfoHelper.GetFromObject(String nameSpace, Object from)
   at Syncfusion.EJ2.Blazor.Grids.Internal.PropertyInfoHelper.GetAccessor(String name, IDictionary`2 cache, Object from)
   at Syncfusion.EJ2.Blazor.Grids.Internal.PropertyInfoHelper.GetFieldValue(String nameSpace, Object from, IDictionary`2 cache)
   at Syncfusion.EJ2.Blazor.Grids.Internal.PropertyInfoHelper.GetObject(String nameSpace, Object from)
   at Syncfusion.EJ2.Blazor.Grids.Internal.GridCellBase`1.GetValue()
   at Syncfusion.EJ2.Blazor.Grids.Internal.GridCellBase`1.OnParametersSetAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()




AL Aleksandrs March 17, 2020 11:00 AM UTC

This happens everywhere when i'm using this template (it's not clear for me where i getting hull reference exeption):

<GridColumn Field="ExName" HeaderText="Exercise">
                        <Template>
                            @{
                                var val = "";
                                var exId = (context as WorkoutTaskModel).ExerciseId;  // display its corresponding  text with column template
                                if (exId != null)
                                {
                                    val = ExercisesList.FirstOrDefault(x => x.Id == exId)?.Name;
                                }
                                <div>@val</div>
                            }
                        </Template>
                        <EditTemplate>
                            @*<EjsDropDownList @ref="Ddl" Value="@((context as WorkoutTaskModel).Exercise.Id)" DataSource="@ExercisesList" Placeholder="Exercise">*@
                            <EjsDropDownList @ref="Ddl" Value="@((context as WorkoutTaskModel).ExerciseId)" DataSource="@ExercisesList" Placeholder="Exercise"
                                             FilterType="Syncfusion.EJ2.Blazor.DropDowns.FilterType.Contains" AllowFiltering="true">
                                <DropDownListFieldSettings Value="Id" Text="Name"></DropDownListFieldSettings>
                            </EjsDropDownList>
                        </EditTemplate>
                    </GridColumn>


AL Aleksandrs replied to Aleksandrs March 17, 2020 11:16 AM UTC

This happens everywhere when i'm using this template (it's not clear for me where i getting hull reference exeption):

<GridColumn Field="ExName" HeaderText="Exercise">
                        <Template>
                            @{
                                var val = "";
                                var exId = (context as WorkoutTaskModel).ExerciseId;  // display its corresponding  text with column template
                                if (exId != null)
                                {
                                    val = ExercisesList.FirstOrDefault(x => x.Id == exId)?.Name;
                                }
                                <div>@val</div>
                            }
                        </Template>
                        <EditTemplate>
                            @*<EjsDropDownList @ref="Ddl" Value="@((context as WorkoutTaskModel).Exercise.Id)" DataSource="@ExercisesList" Placeholder="Exercise">*@
                            <EjsDropDownList @ref="Ddl" Value="@((context as WorkoutTaskModel).ExerciseId)" DataSource="@ExercisesList" Placeholder="Exercise"
                                             FilterType="Syncfusion.EJ2.Blazor.DropDowns.FilterType.Contains" AllowFiltering="true">
                                <DropDownListFieldSettings Value="Id" Text="Name"></DropDownListFieldSettings>
                            </EjsDropDownList>
                        </EditTemplate>
                    </GridColumn>

Ok, the problem was:

I'm use Field property in column where Template was defined.

Problem solved! 
Thanks!


RN Rahul Narayanasamy Syncfusion Team March 18, 2020 05:31 AM UTC

Hi Aleksandrs, 
 
Thanks for the update. 
 
We are happy to hear that you have resolved the problem. Please get back to us if you need further assistance. 

Regards,
Rahul
 


Loader.
Up arrow icon