title: A route named 'DefaultRoute' is already in the route collection. Route names must be unique
body: <p>When I publish an <code>ASP.NET WebAPI</code> solution to a remote <code>IIS Server</code>, I get the error message:</p>
  
  <blockquote>
    <p>Message: System.ArgumentException: A route named 'DefaultRoute' is already in the route collection. Route names must be unique.</p>
  </blockquote>
  
  <p>I saw <a href="https://stackoverflow.com/questions/10986909/a-route-named-x-is-already-in-the-route-collection-route-names-must-be-unique">this</a> thread with the same problem, but nothing on it has worked.  I have tried:</p>
  
  <ol>
  <li>Deleting all bin/obj folders in all projects. </li>
  <li>Cleaning/Rebuilding</li>
  <li>Deleting files off the the remote server before publishing</li>
  <li>Renaming the project</li>
  </ol>
  
  <p>Is there anyway I can find out if there is a stale file.  I did rename some files and I heard that this can cause a problem?</p>
  
  <p>Not sure if this matters, but I am using the ASP.NET WebApi along with RestSharp to make my rest calls.</p>
  
  <p>This is what my <code>Global.asax startup</code> has: Is it redundant?</p>
  
  <pre><code>AreaRegistration.RegisterAllAreas();
  WebApiConfig.Register(GlobalConfiguration.Configuration);
  RouteConfig.RegisterRoutes(RouteTable.Routes);
  </code></pre>