2010-04-12 105 views
0

我收到一條錯誤消息,我不太確定問題出在哪裏;有任何想法嗎?錯誤消息:無法加載類型'Global.Apps.Forms.NewVehicleRegistration.NewVehicleReg'

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 'Global.Apps.Forms.NewVehicle.NewVehicleReg'. 

Source Error: 


Line 1: <%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="NewVehicleReg.aspx.cs" Inherits="Global.Apps.Forms.NewVehicle.NewVehicleReg" %> 
Line 2: 
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 


Source File: /globalprocurement/apps/Forms/NewVehicle/NewVehicleReg.aspx Line: 1 


-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 

回答

1

你可以看看this article。看來ASP.NET無法找到編譯後的包含頁面類定義的代碼。

+0

這篇文章說,它適用於asp的1.0 你覺得它仍然適用於框架3.5? – user279521 2010-04-12 12:19:33

+0

它是建立; – user279521 2010-04-12 15:46:42

1

確保名稱空間是正確的並且與代碼隱藏文件中的名稱空間匹配。還要確保項目構建正確,可能是項目無法構建,並且您的應用程序引用了過時的版本。

+0

它是建立; – user279521 2010-04-12 15:46:20

1

如果您在「Web.config」中刪除程序集,就會發生這種情況。確保你沒有<clear/>這樣的:

<configuration> 
    <system.web> 
    <compilation> 
     <clear/> 
    </compilation> 
    </system.web> 
</configuration> 
相關問題