Click here to Skip to main content
16,020,840 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am working with rdl report (ASP.Net MVC 4 with VS2012). Since view can't handle report viewer control I put the report viewer inside a user control file, .ascx file. Unfortunately when I render to view (reportMember.cshtml) it creates error:
The view at '~/Views/Reports/reportMember.ascx' must derive from ViewPage, ViewPage<TModel>, ViewUserControl, or ViewUserControl<TModel>.

I have searched the solution around the web and said that the problem is on mixed assembly version. Then I created some experiment with mvc 2 with VS2010 and it also generate same error. I have also changed the web config and the error exists. Do you have any solutions? Thanks in advance.
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