.net版本:1.1 (VS.net 2003自带的)
操作环境:Windows XP Professional SP2 (当前使用简体中文的MUI环境)
我在VS.net 2003 (Enterprise Architect版本)中,使用向导创建了一个C#的Web应用程式,但是当我在IE中浏览时,出现错误,说不能载入Inhertis属性后的类,我刚学.net,不知道怎么办,希望前辈指教!
<%@ Application Codebehind="Global.asax.cs" Inhertis="WebApplication1.Global"%>
出现错误:Cannot load type : WebApplication1.Global
using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
namespace WebApplication1
{
/// <summary>
/// Summary description for Global.
/// </summary>
public class Global : System.Web.HttpApplication
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
public Global()
{
InitializeComponent();
}
protected void Application_Start(Object sender, EventArgs e)
{
}
protected void Session_Start(Object sender, EventArgs e)
{
}
protected void Application_BeginRequest(Object sender, EventArgs e)
{
}
protected void Application_EndRequest(Object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{
}
protected void Application_Error(Object sender, EventArgs e)
{
}
protected void Session_End(Object sender, EventArgs e)
{
}
protected void Application_End(Object sender, EventArgs e)
{
}
#region Web Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
}
#endregion
}
}
谢谢!!