| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 887 人关注过本帖
标题:[求助]VS.net 2003,向导创建的Web程式中,Global.asax的Inherits属性出现错 ...
只看楼主 加入收藏
冰之川谷
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-11-20
收藏
 问题点数:0 回复次数:2 
[求助]VS.net 2003,向导创建的Web程式中,Global.asax的Inherits属性出现错误

.net版本:1.1 (VS.net 2003自带的)
操作环境:Windows XP Professional SP2 (当前使用简体中文的MUI环境)

我在VS.net 2003 (Enterprise Architect版本)中,使用向导创建了一个C#的Web应用程式,但是当我在IE中浏览时,出现错误,说不能载入Inhertis属性后的类,我刚学.net,不知道怎么办,希望前辈指教!

Global.asax程序代码
<%@ Application Codebehind="Global.asax.cs" Inhertis="WebApplication1.Global"%>
出现错误:Cannot load type : WebApplication1.Global


Global.asax.cs程序代码
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
}
}



谢谢!!

搜索更多相关主题的帖子: 程式 Global Inherits asax 向导 
2005-12-01 20:42
冰封谷主
Rank: 4
等 级:贵宾
威 望:10
帖 子:226
专家分:20
注 册:2005-1-7
收藏
得分:0 
你代码怎么写到那里面呀,,

2005-12-02 07:56
冰之川谷
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-11-20
收藏
得分:0 
啊?什么意思?我不太明白?
Global.asax.cs文件要写些什么东西才可以吗?

我不知道,因为一开始程序就在Global.asax中出错了……
谢谢指教!

2005-12-02 13:49
快速回复:[求助]VS.net 2003,向导创建的Web程式中,Global.asax的Inherits属性 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016705 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved