2012-02-14 20 views
0

我有一個aspx頁面(Project.aspx)和一個aspx.cs代碼(Project.aspx.cs)。本網站安裝在客戶端,以前工作正常。但現在這可不行,扔黃色頁面如下:Asp.net - 無法加載類型'MyNameSpace.Reporting.UI._Default'


Server Error in '/mywebcom' 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 'MyNameSpace.Reporting.UI._Default'. 

Source Error: 


Line 1: <%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="Project.aspx.cs" Inherits="MyNameSpace.Reporting.UI._Default" %> 
Line 2: 
Line 3: <%@ Register Src="controls/Search.ascx" TagName="Search" TagPrefix="uc1" %> 

Source File: /myweb/tool/reporting/Project.aspx Line: 1 

Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET   

Version:2.0.50727.5456 

請幫我的東西。 非常感謝。

回答

0

Thsi位:

Inherits="MyNameSpace.Reporting.UI._Default" 

在你的頁面指令正在尋找所謂_Default代碼隱藏類。改變這個以匹配任何代碼隱藏類被調用。

+0

感謝您的回答, 但這些名稱相同,類名也是_Default。 – 2012-02-15 06:31:31

+0

你確定命名空間是正確的嗎? – Paddy 2012-02-15 09:08:05

相關問題