Asp.Net Web Api is not working in Godaddy server but its working fine in local
<p>I am getting error when i run Web Api (www.example.com/api/values) in godaddy server it shows <strong>(404 Not Found The requested document was not found on this server.)</strong>. But its working fine in local.</p>

<p>I have manually uploaded the files using FTP(FileZilla) in Godaddy and also Godaddy server supports ASP.NET Hosting.</p>

<p>Below are the code using in Web Api:</p>

<p>ValuesController.cs</p>

<pre><code>namespace Webapi {
 public class ValuesController : ApiController {
    // GET api/&lt;controller&gt;
    public IEnumerable&lt;string&gt; Get()
    {
        return new string[] { "value1", "value2" };
    }

    // GET api/&lt;controller&gt;/5
    public string Get(int id)
    {
        return "value";
    }

    // POST api/&lt;controller&gt;
    public void Post([FromBody]string value)
    {
    }

    // PUT api/&lt;controller&gt;/5
    public void Put(int id, [FromBody]string value)
    {
    }

    // DELETE api/&lt;controller&gt;/5
    public void Delete(int id)
    {
    }
  }
}
</code></pre>

<p>Valueswebconfig.cs</p>

<pre><code>namespace Webapi {
  public static class WebApiConfig {
    public static void Register(HttpConfiguration config)
    {
        config.Routes.MapHttpRoute(
        name: "DefaultApi",
        routeTemplate: "api/{controller}/{id}",
        defaults: new { id = RouteParameter.Optional }
        );

       // config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));


        //// Custom Formatters:
        //config.Formatters.XmlFormatter.SupportedMediaTypes.Remove(
        //    config.Formatters.XmlFormatter.SupportedMediaTypes.FirstOrDefault(t =&gt; t.MediaType == "application/xml"));

        //var jsonFormatter = config.Formatters.OfType&lt;JsonMediaTypeFormatter&gt;().First();
        //jsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();

    }

  }
}
</code></pre>

<p>Web.config</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;configuration&gt;

&lt;system.web&gt;
  &lt;compilation debug="true" targetFramework="4.5.2" /&gt;
  &lt;httpRuntime targetFramework="4.5.2" /&gt;
&lt;/system.web&gt;

&lt;system.webServer&gt;
&lt;handlers&gt;
  &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /&gt;
  &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /&gt;
  &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
  &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /&gt;
  &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /&gt;
  &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /&gt;
&lt;/handlers&gt;
&lt;/system.webServer&gt;&lt;/configuration&gt;
</code></pre>