title: ASP.NET Web Api in Web forms
body: <p>i´m trying to use the asp.net web api in WEB FORMS with visual studio 2010 (sp1)
  i have done this steps <a href="http://myrandomykien.blogspot.com/2012/02/simplest-web-api-site-with-nuget.html" rel="noreferrer">http://myrandomykien.blogspot.com/2012/02/simplest-web-api-site-with-nuget.html</a></p>
  
  <p>When i use the visual studio development server <strong>it works</strong>, but when i´m using iis 7.5 i get an Error HTTP 404.0 - Not Found.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>This is my Global-asax</p>
  
  <pre><code>protected void Application_Start(object sender, EventArgs e)
          {
              RouteTable.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = System.Web.Http.RouteParameter.Optional }
              );
          }
  </code></pre>
  
  <p>This is the api class</p>
  
  <pre><code>public class GreetingController : ApiController
  {
      public string GetGreeting(string id)
      {
          return String.Format("Hello {0}", id);
      }
  }
  </code></pre>