I create a simple report with only one textbox and its value from parameter (=Parameters!Parameter1.Value).
I also create a simple report parameter, name: Parameter1, allow null and allow blank value.
Then in my view I show the report using this code:
@Html.MvcReportViewerFluent("Report/rptTest.rdlc").ProcessingMode(ProcessingMode.Local).ReportParameters(new { Parameter1 = "Hello World!" })
After run, I get the error message: "Service unavailable!", and from the console "Microsoft.Reporting.WebForms.LocalProcessingException: An+error+occurred+during+local+report+processing."
If I remove the parameter and change with text, it will display the report.
How to solve this?
Here is the configuration in web.config:
<MvcReportViewer reportServerUrl="" username="" password="" aspxViewer="~/MvcReportViewer.aspx" aspxViewerJavaScript="~/Scripts/MvcReportViewer.js" errorPage="~/MvcReportViewerErrorPage.html" showErrorPage="true" isAzureSSRS="false" encryptParameters="false" localDataSourceProvider="MvcReportViewer.SessionLocalDataSourceProvider, MvcReportViewer" />
I create a simple report with only one textbox and its value from parameter (
=Parameters!Parameter1.Value).I also create a simple report parameter, name:
Parameter1, allow null and allow blank value.Then in my view I show the report using this code:
@Html.MvcReportViewerFluent("Report/rptTest.rdlc").ProcessingMode(ProcessingMode.Local).ReportParameters(new { Parameter1 = "Hello World!" })After run, I get the error message: "Service unavailable!", and from the console "Microsoft.Reporting.WebForms.LocalProcessingException: An+error+occurred+during+local+report+processing."
If I remove the parameter and change with text, it will display the report.
How to solve this?
Here is the configuration in web.config:
<MvcReportViewer reportServerUrl="" username="" password="" aspxViewer="~/MvcReportViewer.aspx" aspxViewerJavaScript="~/Scripts/MvcReportViewer.js" errorPage="~/MvcReportViewerErrorPage.html" showErrorPage="true" isAzureSSRS="false" encryptParameters="false" localDataSourceProvider="MvcReportViewer.SessionLocalDataSourceProvider, MvcReportViewer" />