找不到方法:“Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)”。

來源:互聯網
上載者:User
在本機運行正常,傳到伺服器出現以下錯誤:“/”應用程式中的伺服器錯誤。 找不到方法:“Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)”。

說明: 執行當前 Web 請求期間,出現未處理的異常。請檢查堆疊追蹤資訊,以瞭解有關該錯誤以及代碼中導致錯誤的出處的詳細資料。 

異常詳細資料: System.MissingMethodException: 找不到方法:“Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)”。

源錯誤: 

執行當前 Web 請求期間產生了未處理的異常。可以使用下面的異常堆疊追蹤資訊確定有關異常原因和發生位置的資訊。


堆疊追蹤: 

[MissingMethodException: 找不到方法:“Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)”。]   Bizsir.Web.Controls.UserLogin1.Page_Load(Object sender, EventArgs e) +0   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33   System.Web.UI.Control.OnLoad(EventArgs e) +99   System.Web.UI.Control.LoadRecursive() +47   System.Web.UI.Control.LoadRecursive() +131   System.Web.UI.Control.LoadRecursive() +131   System.Web.UI.Control.LoadRecursive() +131   System.Web.UI.Control.LoadRecursive() +131   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

 

版本資訊: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433

解決方案:因為原生環境是.net Framework 3.5sp1 ,而伺服器是.net Frameword 3.5,因此將伺服器的版本升級到.net Framework 3.5sp1 問題解決.

參考:http://hi.baidu.com/zsjun_1/blog/item/1fcbd8cfd87beaf252664fa1.html

http://forums.asp.net/t/1314968.aspx

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.