0

最近我们已经将我们的项目移动到网络应用程序,一切都很好,但突然间我不知道我什么时候尝试调试我的应用程序,它向我显示以下错误:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load type 'NavigateWebApp.Global'.

Source Error: 

Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="NavigateWebApp.Global" Language="C#" %>


Source File: /global.asax    Line: 1 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971 

我确信没有构建错误。

4

2 回答 2

0

这可能是由于您的'NavigateWebApp.Global'类/命名空间在您指定的位置不可用引起的。

检查你在哪里定义它并确保它可以被Global.asax页面访问。

于 2012-07-26T15:33:42.060 回答
0

问题的根源是您的Global.asax文件引用了一个不再存在的类(或至少在您指定的位置)。简单的解决方法是使用类名Inherits的完全限定路径Global.asax(您将在Global.asax.cs文件中找到)更新属性。

于 2012-07-26T15:40:37.513 回答