title: The input was not valid .Net Core Web API
body: <p>I am facing a weird issue and almost spent 4 hours with no luck.</p>
  
  <p>I have a simple Web API which I am calling on form submit.</p>
  
  <p>API-</p>
  
  <pre><code>// POST: api/Tool
  [HttpPost]
  public void Post([FromBody] Object value)
  {
      _toolService.CreateToolDetail(Convert.ToString(value));
  }
  </code></pre>
  
  <p>HTML-</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;h2&gt;HTML Forms&lt;/h2&gt;
  &lt;form name="value" action="https://localhost:44352/api/tool" method="post"&gt;
    First name:&lt;br&gt;
    &lt;input type="text" id="PropertyA" name="PropertyA" value="Some value A"&gt;
    &lt;br&gt;
    Last name:&lt;br&gt;
    &lt;input type="text" id="PropertyB" name="PropertyB" value="Some value B"&gt;
    &lt;br&gt;&lt;br&gt;
    &lt;!--&lt;input type="file" id="Files" name="Files" multiple="multiple"/&gt;--&gt;
    &lt;br&gt;&lt;br&gt;
    &lt;input type="submit" value="Submit"&gt;
  
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I hit the submit button I get below error-</p>
  
  <pre><code>{"":["The input was not valid."]}
  </code></pre>
  
  <p>Configurations in Startup class-</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
      services.AddSingleton&lt;IConfiguration&gt;(Configuration);
  }
  
  public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  {
      if (env.IsDevelopment())
      {
          app.UseDeveloperExceptionPage();
      }
      else
      {
          app.UseHsts();
      }
  
      app.UseHttpsRedirection();
      app.UseMvc();
  }
  </code></pre>
  
  <p>This only happens for POST request. GET request works fine. Same issue when testing in Postman REST client. Any help please? Please let me know if I can provide more details.</p>