2012-07-26 94 views
0

最近,我們已將我們的項目到Web應用程序和一切都很好,但突然當我試圖調試我的應用程序的顯示我下面的錯誤,我不知道:未能加載類型「NavigateWebApp.Global」

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 

我相信沒有生成錯誤。

回答

0

這可能是由於您的'NavigateWebApp.Global'類/名稱空間在您指定的位置不可用導致的。

檢查您定義的位置並確保它可以訪問Global.asax頁面。

0

問題的根源在於你Global.asax文件正在引用一個不再存在的類(或者至少在你指定的位置)。簡單的修復方法是使用Global.asax類名的完全限定路徑(您可以在Global.asax.cs文件中找到)更新Inherits屬性。

+0

感謝您的回覆。即使這是我發佈時在我發佈時的那個,但它不適合我,當我試圖瀏覽更多解決方案時,我遇到了一個新的場景,我的IIS ....所以你有任何想法如何將IIS拖入圖片... – user1552588 2012-07-26 16:32:09

相關問題