2010-05-05 48 views
1

我開發了一個web應用程序,它在本地服務器上正常工作。當我在網上上傳網站時,我點擊了一些按鈕,我得到這個錯誤。我正在使用母版頁,但我沒有將母版頁放置在腳本管理器中,我將scriptmanager標記放在每個頁面中。它在本地服務器上工作正常,但它在線發生錯誤。 請你能幫助我。謝謝asp.net中的解析器錯誤?

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:ScriptManager'. 

Source Error: 

Line 9: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> 
Line 10: 
Line 11:  <asp:ScriptManager ID="ScriptManager1" runat="server"> 
Line 12:  </asp:ScriptManager> 
Line 13:   <asp:UpdatePanel id="UpdatePanel2" runat="server" UpdateMode="Conditional"> 
+0

雅我解決一些簡單的我加入這個 <頁面enableEventValidation = 「真」 enableViewStateMac = 「假」> <添加的TagPrefix = 「ASP」 的命名空間= 「System.Web.UI程序」 的問題裝配=「System.Web.Extensions程序,版本= 1.0.61025.0,文化=中性公鑰= 31bf3856ad364e35」 /> 2010-05-06 08:48:58

回答

0

確保在線網站設置爲使用.NET Framework的正確版本。 大概3.5

+0

嗨DavRob60先生實際上我用的配置文件,這是其他項目的配置文件,我認爲這是給問題。 – 2010-05-06 06:09:55

+0

在本地它是原來的配置在網上我用了其他項目配置文件 – 2010-05-06 06:10:34

+0

是因爲它給錯誤,所以我把不同的配置文件 – 2010-05-06 06:11:12

1

首先,你應該比較你的本地web.config和生產web.config。您可能錯過了與ajax相關的一個或多個配置項目。

在這裏,你有一個關於如何配置Ajax應用程序參考:

http://www.asp.net/ajax/documentation/live/ConfiguringASPNETAJAX.aspx

+0

雅克勞迪奧先生雷迪我會檢查並通知您 – 2010-05-05 12:34:45