<p>I have recently installed .net 3.5 SP1.  When I deployed a compiled web site that contained a form with its action set:</p>

<pre><code>&lt;form id="theForm" runat="server" action="post.aspx"&gt;
</code></pre>

<p>I received this error.<br>
Method not found: 'Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)'.<br>
If a fellow developer who has not installed SP1 deploys the compiled site it works fine.  Does anyone know of any solutions for this?</p>

[{'answer_id': 34776, 'author': 'Daniel Jennings', 'author_id': 3641, 'author_profile': 'https://Stackoverflow.com/users/3641', 'pm_score': 1, 'selected': False, 'text': "<p>I don't know the specific solution, but HtmlForm.set_Action() is a function the compiler creates that acts as the setter for a property called Action.</p>\n\n<p>When you do:</p>\n\n<pre><code>public String Action { set { DoStuff(); } }\n</code></pre>\n\n<p>The <strong>set</strong> code actually becomes a function called <strong>set_Action</strong>.</p>\n\n<p>I know it's not the best answer, but I hope it helps you find the source of your problems!</p>\n"}, {'answer_id': 34810, 'author': 'Tom Mayfield', 'author_id': 2314, 'author_profile': 'https://Stackoverflow.com/users/2314', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://johnsheehan.me/blog/less-code-is-fun-aspnet-35-sp1-removes-need-for-control-adapter-when-using-url-rewriting/" rel="nofollow noreferrer">.NET 3.5 SP1 tries to use the action="" attribute</a> (.NET 3.5 RTM did not). So, when you deploy, your code is attempting to set the HtmlForm.Action property and failing, as the System.Web.dll on the deploy target is RTM and does not have a setter on the property.</p>\n'}, {'answer_id': 280868, 'author': 'Lea Cohen', 'author_id': 278, 'author_profile': 'https://Stackoverflow.com/users/278', 'pm_score': 0, 'selected': False, 'text': '<p>I just ran into the same problem.\nFrom what I understood it is indeed caused by the fact the my PC has .NET 3.5 SP1 on it, and the server to which I deployed the project doesn\'t.<br>\nFrom what I understand, one solution is that the server be updated with .NET 3.5 SP1. As I don\'t want to do that yet, I just removed the "action" attribute from all the forms in the project, and that solved the problem.<br>\n<a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=361981&amp;wa=wsignin1.0" rel="nofollow noreferrer">Read more</a></p>\n'}, {'answer_id': 1272718, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': "<p>All mentioned above is true...</p>\n\n<p>In fact, when one installs 3.5 SP1, it automatically updates 2.0 and 3.0 with their own SP2.\nSo, if you are using 2.0 for an application, you'll get the error.</p>\n\n<p>In addition, SP1 on .Net2.0 did not cause the problem.</p>\n"}, {'answer_id': 1320343, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>There is another solution to this.\nWrite a JavaScript that would set the action of the form to the expected URL at Page_Load and register the script at page load.</p>\n'}, {'answer_id': 1506252, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>It is enough to install Framework 3.6 sp1 which does work fine.</p>\n'}]
['https://Stackoverflow.com/questions/34768', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2903/']