Why this webapi2 attribute routing is not working?
<p>I have been struggling a WebApi2 setup based on Attribute Routing and I have run out of ideas what can be the problem. The following code is a newly created WebApi project by Visual Studio 2015. There are no changes in it. It simply does not work.</p>

<p>The response says the following:</p>

<pre class="lang-xml prettyprint-override"><code>&lt;Error&gt;
&lt;Message&gt;
No HTTP resource was found that matches the request URI 'http://.../services/webapi2/api/dummies/dummymethod'.
&lt;/Message&gt;
&lt;MessageDetail&gt;
No type was found that matches the controller named 'dummies'.
&lt;/MessageDetail&gt;
&lt;/Error&gt;
</code></pre>

<p>What I did so far:</p>

<ul>
<li>I have checked the documentation whether I missed something - everything seems fine and fit for the documentation.</li>
<li>I have checked the available answers here whether I find something useful - I have tried everything I found with no success</li>
</ul>

<p>Thanks for any help in advance!</p>

<p>DummyController.cs</p>

<pre class="lang-cs prettyprint-override"><code>using System.Web.Http;

namespace WebApi2.Controllers
{
    [RoutePrefix( "Dummies" )]
    public class Dummy : ApiController
    {
        [Route("dummymethod")]
        public string Get()
        {
            return "asdasd";
        }
    }
}
</code></pre>

<p>WebApiConfig.cs</p>

<pre class="lang-cs prettyprint-override"><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;

namespace WebApi2
{
    public static class WebApiConfig
    {
        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 }
            );
        }
    }
}
</code></pre>

<p>Installed packages:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;packages&gt;
  &lt;package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net452" /&gt;
  &lt;package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net452" /&gt;
  &lt;package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net452" /&gt;
  &lt;package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net452" /&gt;
  &lt;package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net452" /&gt;
  &lt;package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net452" developmentDependency="true" /&gt;
  &lt;package id="Newtonsoft.Json" version="6.0.4" targetFramework="net452" /&gt;
&lt;/packages&gt;
</code></pre>