本文介绍了无法加载类型'Namespace。[Global]'&不同的硬盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚将我们的VS2003 1.1 VB Web项目(其工作价格为b $ b罚款)转换为VS2005 2.0,现在我得到:


解析器错误消息:无法加载类型''<命名空间>。[全局]''。

来源错误:

第1行:<%@ Application Codebehind =" Global。 asax.vb"

Inherits ="< Namespace> ;. [Global]" %>


我已经做了很多我在网上找不到的东西,但是这里

是一些独特的东西关于我发生了什么。


*我在J驱动器上进行了所有开发。 (本地驱动器)。

*我读到这个错误意味着你需要重新编译所以我删除了

web app dll和pdb文件。他们还没有被重建......因为最初的错误是
。鸡蛋前的鸡肉?

*当我排除/删除Global。*文件时,我会收到错误,说明

我的部分用户控件也无法加载

*其中一些用户控件现在也有图像文件找不到
,(确实存在)。丢失的图片网址看起来像/ web

app folder / graphics / image.gif

*现在出于某种原因而不是在解决方案中显示我的网络应用程序名称

资源管理器说J:\ ... \ Web应用程序名称。


有没有人有这些事情发生? 2.0不喜欢虚拟文件夹

在不同的硬盘上?我读到Global现在是一个关键字,我可以吗?
安全地将[Global]重命名为Global2


帮助!

谢谢


JF

We just converted our VS2003 1.1 VB web project (which was working
fine) to VS2005 2.0 and now I get:

Parser Error Message: Could not load type ''<Namespace>.[Global]''.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="<Namespace>.[Global]" %>

I''ve done a lot of things I''ve found on the web to no avial, but here
are some unique things about what is happening to me.

* I have all my development on a J drive. (local drive).
* I read that this error means you need to recompile so I deleted the
web app dll and pdb files. They haven''t been rebuilt yet...because of
the initial error. Chicken before the egg?
* When I exclude/delete Global.* files I then get errors saying that
some of my User controls could also not be loaded
* Several of these User controls also now have image files can''t be
found, (that really do exist). The missing image urls look like /web
app folder/graphics/image.gif
* Now for some reason instead of showing my web app name in Solution
Explorer is says "J:\...\Web app name".

Has anyone had these things happen? Does 2.0 not like virtual folders
on different harddrives? I read that Global is now a keyword, Can I
safely rename [Global] to Global2

Help!
Thanks

JF

推荐答案





实际上,确实如此,但你必须将它放在App_Code目录中。 />
如果放在那里它会编译好。


Global.asax.cs相同


转换向导将为您移动文件。


Juan T. Llibre,asp.net MVP

asp.net faq:

foros de asp.net, en espa?ol:

===================================

Nathan Sokalski < nj ******** @ hotmail.comwrote in message

news:%2 **************** @ TK2MSFTNGP03.phx。 gbl ...

Actually, it does, but you have to place it in the App_Code directory.
It will compile just fine if placed there.

The same for Global.asax.cs

The conversion wizard will move the files for you.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...






实际上,确实如此,但你必须将它放在App_Code目录中。

如果放置它会编译得很好那里。


Global.asax.cs相同


转换向导会为你移动文件。



Juan T. Llibre,asp.net MVP

asp.net faq:

foros de asp.net,en espa?ol:

= ==================================

" Nathan Sokalski" < nj ******** @ hotmail.comwrote in message

news:%2 **************** @ TK2MSFTNGP03.phx。 gbl ...


Actually, it does, but you have to place it in the App_Code directory.
It will compile just fine if placed there.

The same for Global.asax.cs

The conversion wizard will move the files for you.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...





这篇关于无法加载类型'Namespace。[Global]'&amp;不同的硬盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 00:58