config.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); |
public class DefaultCaseControllerConfigAttribute : Attribute, System.Web.Http.Controllers.IControllerConfiguration
{
public void Initialize(System.Web.Http.Controllers.HttpControllerSettings controllerSettings, System.Web.Http.Controllers.HttpControllerDescriptor controllerDescriptor)
{
var formatter = controllerSettings.Formatters.OfType<System.Net.Http.Formatting.JsonMediaTypeFormatter>().Single();
controllerSettings.Formatters.Remove(formatter);
formatter = new System.Net.Http.Formatting.JsonMediaTypeFormatter
{
SerializerSettings = { ContractResolver = new Newtonsoft.Json.Serialization.DefaultContractResolver() }
};
controllerSettings.Formatters.Add(formatter);
}
}
[DefaultCaseControllerConfigAttribute]
public class RreportApiController : ApiController, IReportController
{
|
Dear Vinoth Srinivasan (Syncfusion).
I have 2 errors need to the your support :
1.
I have created 2 Web APIs according to your instructions,
including: Report Viewer and Repor Designer. Both published APIs go to
localhost, port 88.
http://localhost:88/report/api/Viewer
http://localhost:88/report/api/Designer
After that, I created a simple report, only 1 textbox and
ran the application OK (report displayed).
Continue, I created a more complex new report (Use Syncfusion's Report server.), including 1 Grid with datasources as a Web API (http: // localhost: 88 / CMIS3 / Api / Test / SelectByID / PB0401) to get the data to fill in the columns of the Grid then the Error Report "Unhandled e