I find the following error when opening a view that I created in my MVC 5 ASP.NET project, the view file is .aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Asistencias.aspx.cs" Inherits="Visitantes.Views.Informes.Asistencias" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
I have also created a driver to call this view, the driver is as follows:
using Syc.Visitantes.Aplicacion.Controladores;
using Syc.Visitantes.Dominio.Entidades;
using System;
using System.Linq;
using System.Net;
using System.Web.Mvc;
namespace Visitantes.Controllers
{
public class InformesController : BaseController
{
public ActionResult Asistencias()
{
return View();
}
}
}
This view is being created in this way so that I can use the ReportViewer in it, since I am doing some reports with Reporting Services. The error that shows me is the following:
Is it possible to combine WebForms with MVC ASP.NET?