title: HTTP Error 405.0 - Method Not Allowed - Form Tag
body: <p>I have an ASP.NET Web Forms (same problem with MVC) project that I'm trying to use to host simple JavaScript exercises with an HTML form that I have added.</p>
  
  <p>Similar questions on this topic have not led me to a solution. I'm guessing I have to add a special handler in IIS for a HTML page?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;To-Do List&lt;/title&gt;
      &lt;meta charset="utf-8" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;br /&gt;
      &lt;form method="post" action="/test/tasks.html" id="theForm"&gt;
          &lt;fieldset&gt;
              &lt;legend&gt;
                  Enter an item to be done.
              &lt;/legend&gt;
              &lt;div&gt;
                  &lt;label for="task"&gt;Task&lt;/label&gt;
              &lt;/div&gt;
              &lt;div&gt;
                  &lt;input type="text" name="task" id="task" required="required" /&gt;
              &lt;/div&gt;
              &lt;input type="submit" value="Add it!" id="submit"&gt;
              &lt;div id="output"&gt;&lt;/div&gt;
          &lt;/fieldset&gt;
      &lt;/form&gt;
      &lt;script src="Scripts/tasks.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>