title: ServiceStack REST service custom path error
body: <p>I am having trouble configuring my ServiceStack REST service to work on my production IIS 7.5 box.  It works fine running localhost, and it also works fine if I deploy in the root of "Default Web Site" -  /EmployeeSvc.  I have a virtual directory structure under Default Web Site for organizational purposes (note custom path in web.config).  I can browse successfully to the default.htm at this location, but when I try to execute the built-in /hello example I receive:</p>
  
  <p>Server Error 404 - File or directory not found.
  The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</p>
  
  <p>Like I said, the built-in /hello example works perfectly from localhost and from a root iis folder under default web site, but not from within a directory structure.  What am I doing wrong with the location-path?</p>
  
  <p>Thanks in advance!  Here is web.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
  
    &lt;location path="Employees-NoAuth/WebServices/EmployeeSvc"&gt;
          &lt;system.web&gt;
            &lt;httpHandlers&gt;
              &lt;add path="*" 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" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" verb="*" /&gt;
            &lt;/handlers&gt;
          &lt;/system.webServer&gt;
    &lt;/location&gt;
  
    &lt;system.web&gt;
      &lt;customErrors mode="RemoteOnly"/&gt;
      &lt;compilation debug="true" targetFramework="4.0" /&gt;
    &lt;/system.web&gt;
  
  &lt;/configuration&gt;
  </code></pre>