title: Calling aspx page in mvc3 gives error- the view must derive from ViewPage, ViewPage<TModel>, ViewUserControl, or ViewUserControl<TModel>
body: <p>I am calling an aspx page in  mvc3.</p>
  
  <p>It gives an error  </p>
  
  <blockquote>
    <p>The view at '~/WebForms/Calendar/Schedule.aspx' must derive from
    ViewPage, ViewPage, ViewUserControl, or
    ViewUserControl.</p>
  </blockquote>
  
  <p>I have added the following code in the global.asax.cs  </p>
  
  <pre><code>routes.MapPageRoute(
      "Schedule",
      "Classes/ManageSchedule",
      "~/WebForms/Calendar/schedule.aspx"
  );
  </code></pre>
  
  <p>and following code in the Classes controller</p>
  
  <pre><code>public ActionResult ManageSchedule()
  {        
      return View("~/WebForms/Calendar/Schedule.aspx");
  }
  </code></pre>