您好,我剛剛將我的應用程序部署到遠程服務器。 我收到此錯誤:未知服務器標記'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,它在我的本地機器上正常工作。
您可以發佈第50行到該源文件的60? – BeemerGuy 2010-11-12 22:22:19
看起來像web.config的問題。搜索網絡上的這個錯誤信息,你會得到很多點擊。 – akonsu 2010-11-12 22:24:10
您確定服務器運行在與您的網站相同的版本上嗎? (例如,服務器配置爲版本4,而您的站點相同) – Aristos 2010-11-12 22:52:07