分析器错误信息: 未能加载类型“student.Global”。源错误:
行 1: <%@ Application Codebehind="Global.asax.cs" Inherits="student.Global" %> 源文件: F:\电子书\学籍管理ASPNET应用程序\student\global.asax 行: 1
这是咋回事,程序没问题啊!!
谢谢
行 1: <%@ Application Codebehind="Global.asax.cs" Inherits="student.Global" %> 源文件: F:\电子书\学籍管理ASPNET应用程序\student\global.asax 行: 1
这是咋回事,程序没问题啊!!
谢谢
解决方案 »
- 我有两个域名有一个不想要了,想做成转向域名该怎么做?
- 索引超出范围。必须为非负值并小于集合大小。
- 请教GridView列宽度问题!
- 高分回报—300,求dotnettools workflow源代码!
- a.aspx?fg=1传值给b.aspx,b.aspx的javasript代码函数怎么得到此值?
- 关于frame和drivers的问题求助
- 如何掉用iframe子页面CodeHide的方法(C#)
- asp.net一般用什么工具或软件调试?Intdev6.0行么?
- 看看小弟在搞的一个网站 http://www.uphoto.net/Login.aspx
- 请问怎样操作cookie? 150分
- 使用Dundas chart时,当图像类型为flash时,加上去的链接有错误!请碰到过的老兄指点一下!
- VS.2003新建项目问题
student.Global
改为
你的虚拟目录名.Global
student是我的一个命名空间,改成虚拟目录名是啥意思?
假设我原来在虚拟目录为aa的项目里面,在创建时,它应该生成
<%@ Application Codebehind="Global.asax.cs" Inherits="aa.Global" %>
后来我又创建了另一个项目比如说bb,那我在项目aa的Global文件里面已经写了不少代码了,我想直接拿过来用,因此把Global这个文件(共3个)直接复制到bb的项目里面来,这样,一运行,它就会出现你上述错误,只要我把Inherits="aa.Global"这一句改为Inherits="bb.Global",那么它就可以用了.
请教一下:Inherits属性我理解是继承后面类的意思。
我在“global.asax" 的cs文件里定义:
namespace student
{
/// <summary>
/// Global 的摘要说明。
/// </summary>
public class Global : System.Web.HttpApplication
{
..........
而在"global.asaz"文件里不是应该定义
<%@ Application Codebehind="Global.asax.cs" Inherits="student.Global" %>吗?为什么是Inherits="虚拟目录名.Global”?
再线等待高手指点。谢谢
不是虚拟目录名,而是你的页面后台代码的类的限定名,即:命名空间名+类名
是啊,我也是这么理解的。 但是最开始的问题是怎么解决?分析器错误信息: 未能加载类型“student.Global”。
源错误:
行 1: <%@ Application Codebehind="Global.asax.cs" Inherits="student.Global" %>
源文件: F:\电子书\学籍管理ASPNET应用程序\student\global.asax 行: 1 一开始能用,后来就会出现这种错误。怎么回事?谢谢
“/Website”应用程序中的服务器错误。
--------------------------------------------------------------------------------分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 未能加载类型“Website.Global”。源错误:
行 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Website.Global" %> 源文件: E:\member\Website\global.asax 行: 1
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032 查看帮助后.在st里把default.aspx设启始页.然后点击>运行.就没出错了.