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