我在VS2010中運行asp.net,C#4.0應用程序。我得到以下編譯錯誤:我的代碼中編譯錯誤的原因是什麼
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
Source Error:
Line 1: using System;
Line 2: using System.Collections.Generic;
Line 3: using System.Linq;
我的頁面屬性是:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs"
EnableEventValidation="false" Inherits="jsPlumb_jsPlumb_Default2" %>
我的C#代碼隱藏類:
namespace CompanyDisplay.jsPlumb.jsPlumb.jsPlumb
{
public class jsPlumb_jsPlumb_Default2 : System.Web.UI.Page
{
}
}
我想命名空間來呈現運行一些Web服務應用程序。
顯示你的代碼...爲了獲得更多的幫助。 – Rahul
添加一些代碼來解釋您的問題。 –
哪些代碼.cs代碼?它說錯誤在default.aspx.cs第1行:使用系統源文件:d:\ CompanyDisplay \ CompanyDisplay \ CompanyDisplay \ jsPlumb \ jsPlumb \ jsPlumb \ Default2.aspx.cs行:1 – jeni