Click here to Skip to main content
15,912,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a report in Asp.net mvc5 wep application...using asp.net control ScriptManager and ReportViewer In the View (ASPX) for show Report Viewer. i have followed this link to create the report
http://www.dotnetawesome.com/2015/01/how-to-display-rdlc-report-in-report-viewer-control-into-mvc4.html[^]
I am using razor view engine in my entire application but for report i have used aspx view engine.

can someone help me hoe to call .aspx in my razor view engine

In my view I have used this to call the ReportViewer.aspx....
@Html.Partial("ReportViewer")


Please someone help me to resolve this error....
The view at '~/Areas/Administration/Views/Shared/ReportViewer.aspx' must derive from ViewPage, ViewPage<TModel>, ViewUserControl, or ViewUserControl<TModel>.


Thanks in Advance....

What I have tried:

I have aslo tried this in routeconfig file
routes.MapPageRoute("Reportview", "Reportview/{Shortlisting}/{Filterable}", "~/Views/{Shortlisting}/{ReportViewer.aspx}");
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900