title: swagger-ui returns 500 after deployment
body: <p>Out of the box configuration works perfectly on my machine, no problems at all.</p>
  
  <p>But when I deploy to our test environment - I get the following message</p>
  
  <blockquote>
    <p>500 : { "Message": "An error has occurred." } /api/swagger/docs/v1</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/T5kJU.jpg"><img src="https://i.stack.imgur.com/T5kJU.jpg" alt="enter image description here"></a>
  The deployment is to <code>default web site/api</code></p>
  
  <p>Im guessing it has something to do with the baseUrl or something like that,
  but I have no idea of even where to begin.</p>
  
  <p>My routes work fine within the project - I can call all my webapi endpoints and they respond correctly.</p>
  
  <p>any help would be much appreciated</p>