title: Handler for Request not found:
body: <p>I am building a service stack for the first time: hello world.  </p>
  
  <p>I have followed the step by step guide in <a href="http://servicestack.net/ServiceStack.Hello/#view-webservice">here</a>:</p>
  
  <p>but it is giving me an error: Handler for Request not found: what could be the missing part? thanks.</p>
  
  <p>here is my global.asax.cs</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Security;
  using System.Web.SessionState;
  using ServiceStack.ServiceHost;
  using ServiceStack.WebHost.Endpoints;
  
  namespace ServiceStack.SearchService
  {
      public class Global : System.Web.HttpApplication
      {
          public class Hello { public string Name { get; set; } }
          public class HelloResponse { public string Result { get; set; } }
          public class HelloService : IService&lt;Hello&gt;
          {
              public object Execute(Hello request)
              {
                  return new HelloResponse { Result = "Hello, " + request.Name };
              }
          }
  
  
  
          /// Web Service Singleton AppHost
          public class HelloAppHost : AppHostBase
          {
              //Tell Service Stack the name of your application and where to find your web services
              public HelloAppHost()
                  : base("Hello Web Services", typeof(HelloService).Assembly) { }
  
              public override void Configure(Funq.Container container) { }
          }
  
          protected void Application_Start(object sender, EventArgs e)
          {
              //Initialize your application
              var appHost = new HelloAppHost();
              appHost.Init();
          }
  
  
          void Application_End(object sender, EventArgs e)
          {
              //  Code that runs on application shutdown
  
          }
  
          void Application_Error(object sender, EventArgs e)
          {
              // Code that runs when an unhandled error occurs
  
          }
  
          void Session_Start(object sender, EventArgs e)
          {
              // Code that runs when a new session is started
  
          }
  
          void Session_End(object sender, EventArgs e)
          {
              // Code that runs when a session ends. 
              // Note: The Session_End event is raised only when the sessionstate mode
              // is set to InProc in the Web.config file. If session mode is set to StateServer 
              // or SQLServer, the event is not raised.
  
          }
  
      }
  }
  </code></pre>
  
  <p>here is my web.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  &lt;configuration&gt;
    &lt;connectionStrings&gt;
      &lt;add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /&gt;
    &lt;/connectionStrings&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0" /&gt;
      &lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="~/Account/Login.aspx" timeout="2880" /&gt;
      &lt;/authentication&gt;
      &lt;membership&gt;
        &lt;providers&gt;
          &lt;clear /&gt;
          &lt;add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /&gt;
        &lt;/providers&gt;
      &lt;/membership&gt;
      &lt;profile&gt;
        &lt;providers&gt;
          &lt;clear /&gt;
          &lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt;
        &lt;/providers&gt;
      &lt;/profile&gt;
      &lt;roleManager enabled="false"&gt;
        &lt;providers&gt;
          &lt;clear /&gt;
          &lt;add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt;
          &lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /&gt;
        &lt;/providers&gt;
      &lt;/roleManager&gt;
      &lt;httpHandlers&gt;
        &lt;add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" /&gt;
        &lt;add path="api*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" /&gt;
      &lt;/httpHandlers&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;handlers&gt;
        &lt;add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" /&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
    &lt;location path="servicestack"&gt;
      &lt;system.web&gt;
        &lt;httpHandlers&gt;
          &lt;add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" /&gt;
          &lt;add path="servicestack*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/&gt;
        &lt;/httpHandlers&gt;
      &lt;/system.web&gt;
      &lt;!-- Required for IIS 7.0 --&gt;
      &lt;system.webServer&gt;
        &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
        &lt;validation validateIntegratedModeConfiguration="false" /&gt;
        &lt;handlers&gt;
          &lt;add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" /&gt;
        &lt;/handlers&gt;
      &lt;/system.webServer&gt;
    &lt;/location&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I browse it by typing  in the browser.</p>
  
  <pre><code>http://localhost:50097/ServiceStack.SearchService/servicestack/metadata
  </code></pre>