, ViewUserControl or ViewUserControl I am working w...">

MVC 4 - the view "WebForm1.aspx" should be derived from ViewPage, ViewPage <TModel>, ViewUserControl or ViewUserControl <TModel>

I am working with an rdlc report (ASP.Net MVC 4 with VS2012). Since the view cannot handle the report viewer, I put the report viewer in the user management file, the .aspx file. Unfortunately, when I render for viewing (WebForm1.aspx), it creates an error: The view in "WebForm1.aspx" must be displayed from ViewPage, ViewPage, ViewUserControl or ViewUserControl.

I searched for a solution over the network, but still have not found a solution. Do you have any ideas?

+5
source share
1 answer

MVC-, :

  • MVC, . . MVC 2 MVC 3, , MVC4.

  • MVC ViewEngine . .aspx , WebForms, Razor? , , , , Razor WebForms.

  • ( , web.conf) . .

+2

All Articles