Autocomplete error while update to version 27.1.48

Hi

I just download and use autocomplete to version 27.1.48

I upload the codes and error in the browser. 

Thank you



Attachment: 20240928_150554_47ef525e.zip

4 Replies

NI nicko September 28, 2024 07:13 AM UTC

I upload the code


Attachment: Syncfusion.AutocompleteProblem_721176c9.zip


NI nicko September 28, 2024 07:31 AM UTC

I also try to update to version 27.1.50

Still have the same error

I upload the photos



Attachment: upgrade_to_27.1.50photos_cf6c2d0.zip


NI nicko September 28, 2024 07:32 AM UTC

and also I upload the source code for test 27.1.50


Any ideas to solve the problem? or any dependency I need to use?

Any codes changes or need to use beside from your documentation

Thanks



Attachment: Syncfusion.AutocompleteProblemversion27.1.50_11a00c57.zip


PK Priyanka Karthikeyan Syncfusion Team September 30, 2024 10:21 AM UTC

Hi nicko ,

 

Thank you for reaching out to us. Upon reviewing your configuration, we noticed that the following line in your Program.cs file is causing the issue:

builder.Services.AddControllersWithViews()
    .AddJsonOptions(options => options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.Preserve);

This particular setting, ReferenceHandler.Preserve, adds additional metadata to the serialized JSON, which is intended to handle complex object graphs with circular references. However, for simpler data structures such as List<string>, this added metadata can interfere with the expected output, leading to issues with the list not being returned or bound correctly.

 

To resolve this issue, we recommend commenting out or removing this line from your Program.cs file if handling circular references is not required for your project. This will ensure that the list is serialized and returned properly without the extra metadata.

 

Please feel free to reach out if you have any further questions or need additional assistance.

 

Regards,

Priyanka K


Attachment: Syncfusion.AutocompleteProblems_43bed85.zip

Loader.
Up arrow icon