title: WebAPI MapHttpRoute issue with action parameters of type list and bool
body: <p>I have a deployment time issue with WebAPI and would be grateful if someone can help.</p>
  
  <p>Routes:</p>
  
  <pre><code>        public static void Register(HttpConfiguration config)
      {
          // Web API configuration and services
  
          // Web API routes
          config.MapHttpAttributeRoutes();
          config.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{id}",
              defaults: new { id = RouteParameter.Optional }
          );
          config.Routes.MapHttpRoute(
              name: "DefaultApi2",
              routeTemplate: "api/{controller}/{action}/{id}",
              defaults: new { id = RouteParameter.Optional }
          );
          config.Routes.MapHttpRoute(
              name: "DefaultApi3",
              routeTemplate: "api/{controller}/{action}/{lines}/{swapAxis}",
              defaults: new
              {
                  controller = "LVChart",
                  action = "Get",
                  lines = RouteParameter.Optional, 
                  swapAxis = RouteParameter.Optional
              }
          );
      }
  </code></pre>
  
  <p>Action :</p>
  
  <pre><code>    // GET api/&lt;controller&gt;
      public IEnumerable&lt;string&gt; Get1()
      {
          return new string[] { "value1", "value2" };
      }
      // GET api/&lt;controller&gt;
      [ActionName("Get")]
      public string Get([FromUri] List&lt;Line&gt; lines, bool swapAxis)
      {
          _lineBuilder = new LVLineBuilder(swapAxis);
          string result = BuildLines(lines);
          return result;
      }
  </code></pre>
  
  <p>OK now here's the problem. 
  Both Get1 and Get(..) works well in localhost. However as soon as deployed on server (Note: I am only deploying webpages/js/dll using publishing wizard) Get1 works fine but Get throws "500 Internal Server Error" </p>
  
  <p>The url for Get1 is </p>
  
  <pre><code>.../api/LVChart/Get1/
  </code></pre>
  
  <p>While Get is </p>
  
  <pre><code>.../api/LVChart/Get/?lines[]=15&amp;lines[]=11&amp;lines[]=12&amp;lines[]=3&amp;lines[]=10&amp;lines[]=7&amp;swapAxis=false
  </code></pre>
  
  <p>I am really running out of options about how to solve this.</p>
  
  <p>Thanks</p>