I have one master page  UserMasterPage.aspx  and content page  default.aspx . When I run default.aspx file the following error is coming
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: 'UserMasterPage' is not allowed here because it does not extend class 'System.Web.UI.MasterPage'.
The masterpage code as follows
MasterPage source <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="UserMasterPage.master.cs" Inherits="UserMasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> The code behind Default.aspx

Go to the complete details ...