title: Unable to get ServiceStack services running with xsp4 and docker
body: <p>I am trying to run a barebones asp.net application with servicestack via mono and xsp in docker. The application builds as expected and the web server starts. I can connect to the shell of the container and have confirmed all the dll's have built correctly and are in the bin directory.</p>
  <p>However, whenever I navigate to the site and attempt to hit a service (e.g. http://mysite/metadata), I receive a 404. If I place a regular html file in the root, it is served correctly.</p>
  <p>I believe I must be missing something in terms of getting the ServiceStack services to run. I have a Global.asax file and everything works as expected locally.
  Below is the docker file and the web.config file</p>
  <p><strong>Docker File</strong></p>
  <pre><code>FROM mono:6.6.0.161
  
  RUN mono --version
  COPY . .
  RUN  apt-get update &amp;&amp; apt-get install -y mono-xsp \
    &amp;&amp; apt-get autoremove -y &amp;&amp; apt-get clean \
    &amp;&amp; rm -rf /var/lib/apt/lists/* /tmp/*
  
  RUN nuget restore app.sln
  RUN msbuild app.sln
  
  
  WORKDIR /app
  
  EXPOSE 80
  
  ENTRYPOINT [&quot;xsp4&quot;, &quot;--port&quot;,&quot;80&quot;]
  </code></pre>
  <p><strong>web.config</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    https://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  &lt;configuration&gt;
    &lt;system.web&gt;
      &lt;compilation debug=&quot;true&quot; targetFramework=&quot;4.7.2&quot;/&gt;
      &lt;httpRuntime/&gt;
      &lt;pages controlRenderingCompatibilityVersion=&quot;4.0&quot;/&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration=&quot;false&quot;/&gt;
      &lt;handlers&gt;
        &lt;add path=&quot;*&quot; name=&quot;ServiceStack.Factory&quot; preCondition=&quot;integratedMode&quot; type=&quot;ServiceStack.HttpHandlerFactory, ServiceStack&quot; verb=&quot;*&quot; resourceType=&quot;Unspecified&quot; allowPathInfo=&quot;true&quot;/&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
    &lt;system.codedom&gt;
      &lt;compilers&gt;
        &lt;compiler language=&quot;c#;cs;csharp&quot; extension=&quot;.cs&quot; type=&quot;Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; warningLevel=&quot;4&quot; compilerOptions=&quot;/langversion:default /nowarn:1659;1699;1701&quot;/&gt;
        &lt;compiler language=&quot;vb;vbs;visualbasic;vbscript&quot; extension=&quot;.vb&quot; type=&quot;Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; warningLevel=&quot;4&quot; compilerOptions=&quot;/langversion:default /nowarn:41008 /define:_MYTYPE=\&amp;quot;Web\&amp;quot; /optionInfer+&quot;/&gt;
      &lt;/compilers&gt;
    &lt;/system.codedom&gt;
  &lt;/configuration&gt;
  </code></pre>