title: Web Service that handles file upload works locally but not remote
body: <p>I've written a webservice in ServiceStack that accepts file uploads.
  To test it I've used the following code:</p>
  
  <pre><code>string filePath = @"C:\myFile.pdf";
  string webApi = @"http://localhost:20938/upload/myFile.pdf";
  
  HttpWebRequest client = (HttpWebRequest)WebRequest.Create(webApi);
  client.Method = WebRequestMethods.Http.Post;
  client.AllowWriteStreamBuffering = false;
  client.SendChunked = true;
  client.ContentType = "multipart/form-data;";
  client.Timeout = int.MaxValue;
  
  using (FileStream fileStream = File.OpenRead(filePath))
  {
      fileStream.Copy(client.GetRequestStream());
  }
  
  var response = new StreamReader(client.GetResponse().GetResponseStream()).ReadToEnd();
  </code></pre>
  
  <p>This works with localhost, but when I deploy it to a remote server, it doesn't work. I get a 500 internal error. (Other Web API calls that return JSON data work perfectly locally and remotely).</p>
  
  <p>How do I fix/debug this? </p>