title: How to fix "An error occurred while processing your request" while calling an action method from a container (VS2017 / Docker)?
body: <p>I created an image from .net core project in vs2017 and create and run a container  from it ( via Docker). </p>
  
  <p>The project works fine when I debug it from VS2017 and request for this url :</p>
  
  <p>Url (debugged project) : <a href="https://localhost:44363/api/Movies/getM" rel="nofollow noreferrer">https://localhost:44363/api/Movies/getM</a></p>
  
  <p>which returns proper response Which I expected.</p>
  
  <p>but when I call the url from started / running container it returns this error :</p>
  
  <p>Url (Container) : <a href="http://localhost:8080/api/Movies/getM" rel="nofollow noreferrer">http://localhost:8080/api/Movies/getM</a></p>
  
  <p><a href="https://i.stack.imgur.com/p4tbM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p4tbM.jpg" alt="error"></a></p>
  
  <p>How to solve it? any help would be appreciated .</p>
  
  <p>this is the action method of getM:</p>
  
  <pre><code>    [HttpGet]
      [Route("api/Movies/getM")] // stdid,sourseid
      public dynamic getdataJoin3Table(/*int id*/)
      {
          ResponseModel _objResponseModel = new ResponseModel();
  
          _objResponseModel.Info = "res";
          _objResponseModel.ResponseStatus = true;
          _objResponseModel.ResponseMessage = "Data Received successfully";
          return _objResponseModel;
      }
  </code></pre>
  
  <p>docker container logs: </p>
  
  <p><a href="https://i.stack.imgur.com/KHct4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KHct4.png" alt="enter image description here"></a></p>