Compiler Error Message: CS0433

 

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: CS0433: The type 'HolidaySend' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\4a104803\4398f40\assembly\dl3\7827b4ca\002a5e7a_f10acd01\App_Web_huhlpbju.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\4a104803\4398f40\assembly\dl3\d115e798\00fd2c79_f10acd01\App_Code.DLL'

Source Error:

 
Line 146:    
Line 147:    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 148:    public class holidaysend_aspx : global::HolidaySend, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 149:        
Line 150:        private static bool @__initialized;


Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\4a104803\4398f40\App_Web_holidaysend.aspx.cdcab7d2.jljxcrbg.0.cs    Line: 148






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

 

解决办法:

 

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="HolidaySend.aspx.cs" Inherits="HolidaySend" %>

将Inherits的属性值改成另外一个即可。

这种错误是由同一站点的类名出现重复导致的。

posted on 2012-03-26 09:50  NewProgramer  阅读(2421)  评论(0编辑  收藏  举报

导航