title: No type was found that matches the controller named in asp.net website project
body: <p>I'm facing the below error while ruing my asp.net website project.</p>
  
  <p><strong>Error:</strong>
  No type was found that matches the controller named 'XXXX'.</p>
  
  <p><strong>Route Config:</strong></p>
  
  <pre><code> void Application_Start(object sender, EventArgs e)
  {
      // Code that runs on application startup
     // AuthConfig.RegisterOpenAuth();
      RouteConfig.RegisterRoutes(RouteTable.Routes);
  
      System.Web.Http.GlobalConfiguration.Configuration.Routes.MapHttpRoute(
             name: "DefaultApi",
             routeTemplate: "api/{controller}/{action}/{id}",
             defaults: new { id = System.Web.Http.RouteParameter.Optional });
  }
  </code></pre>
  
  <p><strong>WebApi Controller:</strong></p>
  
  <pre><code>  public class SampleWebController : ApiController
  {
      public object SampleAction(Dictionary&lt;string, string&gt; jsonResult)
      {
  
      }
   }
  </code></pre>
  
  <p><strong>URL:</strong>  ServiceUrl="../api/SampleWeb"</p>
  
  <p>Please any one provide an idea to over come this error.</p>
  
  <p>Also let me know if i'm doing any think wrong here.</p>
  
  <p>Thanks in advance. </p>