title: page is not allowed here because it does not extend class 'System.Web.UI.MasterPage'
body: <p>I am creating a website using master page, which works fine. but after I add entity data model  and some retrieval code into the login page, it comes some errors</p>
  
  <p>the code is like </p>
  
  <pre><code>var tombstoneQuery = from t in crnnsupContext.Tombstones.Include("ProvState")
                               where t.RegNumber == _username
                               select t;
  List&lt;Tombstone&gt; tombstoneResult = tombstoneQuery.ToList();
  Cache.Insert("Tombstone", tombstoneResult);
  </code></pre>
  
  <p>the first error is happened when i try to put the list into the Cache, the error says "Thread was being aborted. After I set cache.insert statement as a commend, this error was gone, but the next one came</p>
  
  <pre><code>Parser Error 
  Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
  
  Parser Error Message: 'OnlineRenewal.Renewal' is not allowed here because it does not extend class 'System.Web.UI.MasterPage'.
  
  Source Error: 
  
  
  Line 1:  &lt;%@ Master Language="C#" AutoEventWireup="true" CodeBehind="renewal.Master.cs" Inherits="OnlineRenewal.Renewal" %&gt;
  Line 2:  
  Line 3:  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  </code></pre>
  
  <p>the Renewal is the master page which i didn't do anything with it. 
  anyone can help? thanks a lot</p>
  
  <p>the code for renewal page. (there is noting there)</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  
  namespace OnlineRenewal
  {
  public partial class renewal : System.Web.UI.MasterPage
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  }
  }
  
  
  
  
  &lt;%@ Master Language="C#" AutoEventWireup="true" CodeBehind="renewal.Master.cs" Inherits="OnlineRenewal.Renewal" %&gt;
  </code></pre>