title: 404 File not found exception when calling ASP.NET webapi
body: <p>When I'm trying to POST a parameter from android to asp.net web api, I got file not found exception. But the same web api is working with postman. Please suggest in which part I should need to correct?</p>
  
  <p>Android code is : </p>
  
  <pre><code> public String CallWebAPI()
         {
  
      OkHttpClient client = new OkHttpClient();
      RequestBody formBody = new FormBody.Builder()
              .add("name", "Rahul")
             .build();
  
      Request request = new Request.Builder()
              .url("http://www.xxxx.co/testapi/TestNameWEBApi")
              .post(formBody)
              .build();
  
      Call call = client.newCall(request);
             Response response = null;
             try {
  
                 response = call.execute();
                 Log.e("ATTEST", "App1 Error is :" + response.toString());
  
             } catch (IOException e) {
                 Log.e("ATTEST", "App1 IOException is :" + e.toString());
  
                 e.printStackTrace();
             }
             return response.toString();
  }
  </code></pre>
  
  <p>And webAPI is : </p>
  
  <pre><code>   [RoutePrefix("testapi")]
  
      [Route("TestNameWEBApi"), HttpPost]
      public HttpResponseMessage TestNameWEBApi(string name)
      {
          try
          {
              var Response = name;
              var Result = this.Request.CreateResponse(HttpStatusCode.OK, Response, new JsonMediaTypeFormatter());
              return Result;//return same parameter to check if the value is reaching here or not
          }
          catch (Exception ex)
          { 
              HttpError Error = new HttpError(ex.Message) { { "IsSuccess", false } };
              return this.Request.CreateErrorResponse(HttpStatusCode.OK, Error);
          }
      }
  </code></pre>