title: ASP.NET Web API looking for web.config in the wrong spot
body: <p>IIS 7.5 is looking for my web.config file in a mapped route and not in the actual folder location.</p>
  
  <p>Example
  C:\inetpub\wwwroot\api\thedoors\1 &lt;-- is where it's looking this is not a directory but a specified url in WebApiConfig class</p>
  
  <p>Where it should look is
  c:\inetpub]wwwroot\thedoors\</p>
  
  <p>I'm using publish from VS 2012 to publish locally to my IIS 7.5 web server.</p>
  
  <p> 
   </p>
  
  <h1>Server Error in Application "THEDOORS"</h1> 
  
  <p>Internet Information Services 7.5</p> 
  
   
   
   Error Summary 
    <h2>HTTP Error 404.0 - Not Found</h2> 
    <h3>The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.</h3> 
    
   
   
   Detailed Error Information 
     
      
      ModuleIIS Web Core 
      NotificationMapRequestHandler 
      HandlerStaticFile 
      Error Code0x80070002 
  
      
     
     
      
      Requested URLhttp://localhost:80/api/thedoors/1 
      Physical PathC:\inetpub\wwwroot\TheDoors\api\thedoors\1 
      Logon MethodAnonymous 
      Logon UserAnonymous 
  
      
      
     
    
   
   
   Most likely causes: 
    <ul>  <li>The directory or file specified does not exist on the Web server.</li>  <li>The URL contains a typographical error.</li>    <li>A custom filter or module, such as URLScan, restricts access to the file.</li> </ul> 
    
   
   
   Things you can try: 
    <ul>  <li>Create the content on the Web server.</li>  <li>Review the browser URL.</li>    <li>Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439" rel="nofollow">here</a>. </li> </ul> 
    
   
  
  
   
   Links and More Information 
    This error means that the file or directory does not exist on the server. Create the file or directory and try the request again. 
    <p><a href="http://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=404,0,0x80070002,7600" rel="nofollow">View more information &raquo;</a></p> 
  
    
   
   
  
  <p>