Skip to content

Get Error When Using Report Parameter #220

@sky3913

Description

@sky3913

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" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions