Method not found: "Void System. Web. UI. HtmlControls. HtmlForm. set_Action (System. String )".

Source: Internet
Author: User
When the local machine runs normally, the following error occurs when it is uploaded to the server: "/" server error in the application. Method not found: "Void system. Web. UI. htmlcontrols. htmlform. set_action (system. String )".

Note:An error occurred while executing the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Exception details:System. missingmethodexception: The method cannot be found: "Void system. Web. UI. htmlcontrols. htmlform. set_action (system. String )".

Source error: 

An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.


Stack trace: 

[MissingMethodException: The method cannot be found: "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

 

Version:Microsoft. NET Framework Version: 2.0.50727.1433; ASP. NET version: 2.0.50727.1433

Solution: because the local environment is. NET Framework 3.5sp1 and the server is. Net frameword 3.5, upgrade the server version to. NET Framework 3.5sp1.

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

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.