Js file throwing an error after .net framework upgraded to 6.0

291 Views Asked by At

Old Framework -> .net core 2.2 upgraded framework -> .net 6.0 Deployed application to IIS 10 Error - Uncaught TypeError: Cannot read properties of undefined(reading 'toLowerCase') Error-> enter image description here

Dev extreme version -> 20.2.6 Any idea why how to solve this issue? This internal.js is a custom js. I have 2 web apps in IIS for the same application. Web app with .net framework core 2.2 -> working fine without error Web app with .net framework 6.0 -> giving this error in js

1

There are 1 best solutions below

2
Developer On

This issue is resolved. .net 6.0 framework convert the uppercase column names return from api to camelcase because of this javascript was not able to get the desired column name and throwing the null error. https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/customize-properties?pivots=dotnet-7-0