我收到这个错误,不能找出问题所在。运行我的Asp.net 4应用程序时出错
Server Error in '/' Application.
--------------------------------------------------------------------------------
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: 'JobManager.Contact' is not allowed here because it does not extend class 'System.Web.UI.Page'.
Source Error:
Line 1: <%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
Line 2: CodeBehind="Contact.aspx.cs" Inherits="JobManager.Contact" %>
Line 3:
Source File: /Contact.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
背后语法的代码是:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace JobManager
{
public partial class Contact : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
您能否从代码隐藏文件中显示类JobSearchManager.Contact的声明? – 2010-09-19 18:47:56
这不是你的代码。这是一个内容页面。向我们展示你的代码。 – 2010-09-19 19:41:42