- Home
- Forum
- Report Platform
- Report Viewer cannot read property toLowerCase
For new customers or those with general reporting questions, we recommend contacting our support team at https://support.boldreports.com/, which is a separate brand created by Syncfusion� for its reporting solutions. Our team will be happy to assist you with any questions you may have.
Thank you for choosing Syncfusion� for your reporting needs.
Report Viewer cannot read property toLowerCase
Hi Manoranjan ,
I too get the same error when I set ContractResolver to CamelCasePropertyNamesContractResolver as shown on code below
public class Startup
{
public void Configuration(IAppBuilder app)
{
var config = GlobalConfiguration.Configuration;
config.Formatters.JsonFormatter.UseDataContractJsonSerializer = false;
config.Formatters.JsonFormatter.SerializerSettings = new Newtonsoft.Json.JsonSerializerSettings
{
DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local,
ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(),
};
}
}
- 5 Replies
- 4 Participants
- Marked answer
-
MA Marta Alonso
- May 19, 2021 08:56 AM UTC
- Jul 30, 2021 06:32 AM UTC