Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145868 | Jul 11,2019 11:54 AM UTC | Jul 24,2019 02:33 PM UTC | jQuery | 8 |
![]() |
Tags: ejReportViewer |
No webpage was found for the web address:http://localhost:58003/api/ApiController/Report/PostReportAction
Old |
New |
public static void Register(HttpConfiguration config)
{
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/ApiController/{controller}/{action}",
defaults: new { id = RouteParameter.Optional }
);
}
|
public static void Register(HttpConfiguration config)
{
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
);
}
|
Old |
New |
$("#viewer").ejReportViewer({
reportServiceUrl: "/api/ApiController/Report",
reportPath: '~/App_Data/GroupingAggregate.rdlc',
processingMode: ej.ReportViewer.ProcessingMode.Local,
dataSources: [
{
value: data,
name: "Sales"
}
],
});
|
$("#viewer").ejReportViewer({
reportServiceUrl: "/api/Report",
reportPath: '~/App_Data/GroupingAggregate.rdlc',
processingMode: ej.ReportViewer.ProcessingMode.Local,
dataSources: [
{
value: data,
name: "Sales"
}
],
});
|
Query |
Response |
I check the assemblies and they are all present in the project. We changed the syncfusion version to Syncfusion.Web.ReportViewer v16.3.0.21. For the report viewer, when we export a report, the export is done but then there is a server error "Server cannot set status after HTTP headers have been sent." |
We have checked the mentioned issue with 16.3.0.21 version assemblies, but we were not able to reproduce the mentioned issue. So we have prepared a simple MVC report viewer sample and it can be downloaded from below location. Could you please confirm whether the below sample is working fine at your end.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/MVC5ReportViewer-293573495.zip
If issue persists then could you please revert the sample with issue reproducible case to validate the mentioned problem at our end. |
We are also having another issue with pdf viewer, after changing the Syncfusion.Web.ReportViewer version:
The version we are using is Syncfusion.AspNet.Mvc5.PdfViewer v16.4.0.52.
|
We suspect the mentioned issue occurs when dependent assembly versions are mismatching. So is this possible for you to modify the sample to reproduce the mentioned issue in above sample. |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.