我在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