2010-11-12 95 views
2

您好,我剛剛將我的應用程序部署到遠程服務器。 我收到此錯誤:未知服務器標記'asp:ListView'

Server Error in '/please_god' 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: Unknown server tag 'asp:ListView'. 

Source Error: 


Line 55:  <font color="brown" size="+1">New Posting(Messages)</font><br /> 
Line 56: 
Line 57:  <asp:ListView ID="ListView1" runat="server" 
Line 58:   DataSourceID="SqlDataSource1"> 
Line 59:   <LayoutTemplate> 

有人可以幫我用listview時,爲什麼我收到此錯誤。 我正在使用Visual Web Developer 2010,它在我的本地機器上正常工作。

+1

您可以發佈第50行到該源文件的60? – BeemerGuy 2010-11-12 22:22:19

+0

看起來像web.config的問題。搜索網絡上的這個錯誤信息,你會得到很多點擊。 – akonsu 2010-11-12 22:24:10

+1

您確定服務器運行在與您的網站相同的版本上嗎? (例如,服務器配置爲版本4,而您的站點相同) – Aristos 2010-11-12 22:52:07

回答

2

您確定您的目標是/安裝了.net框架的正確版本嗎?你需要有3.5 +的目標。

+0

非常感謝您的幫助 – onfire4JesusCollins 2010-11-13 01:13:12

2

補充一點:

<pages> 
    <controls> 
     <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    </controls> 
</pages> 

到web配置的情況下,不存在,它

相關問題